Pasos Para Conectar Un Bd Con Vb

10
Pasos Para Conectar un BD con VB Juan Carlos Orobio Yurani Barrera Carlos Gutiérrez

Transcript of Pasos Para Conectar Un Bd Con Vb

Page 1: Pasos Para Conectar Un Bd Con Vb

Pasos Para Conectar un BD con VB

Juan Carlos OrobioYurani Barrera

Carlos Gutiérrez

Page 2: Pasos Para Conectar Un Bd Con Vb

BASE DE DATOS EN ACCESS

• EN VISUAL BASIC DISEÑAR LO QUE QUIERES MOSTRAR DE LA BD SEGÚN LA INFO.

• HACER CLICK DERECHO EN LA BARRA PROYECTO GENERAL , CLICK EN COMPONENTES

Page 3: Pasos Para Conectar Un Bd Con Vb

EN LA VENTANA COMPONENTES HACER CLICK EN: “Microsoft ADO Data Control 6.0 (OLEDB)” Y ACEPTAR.

• APARECERÁ INSTANTÁNEAMENTE EN LA BARRA GENERAL EL ICONO O BOTÓN “ADO”

• CLICK SOBRE EL BOTÓN Y APARECERÁ LA BARRA DE DESPLAZAMIENTO ADO.

Page 4: Pasos Para Conectar Un Bd Con Vb

EN LAS PROPIEDADES DE CONTROL ADO, SELECCIONAMOS

Conecctionstring

• CLICK EN: “USAR CADENA DE CONEXIÓN” Y ACEPTAR

• EN LA VENTANA “PROPIEDADES DE VINCULO DE DATOS” HACER CLICK EN: MICROSOFT OLE DB PROVIDE FOR ODBC DRIVERS Y SIGUIENTE.

Page 5: Pasos Para Conectar Un Bd Con Vb

EN LA “PESTAÑA CONEXIÓN”, CLICK EN USAR LA CADENA DE CONEXIÓN, CLICK EN GENERAR, EN LA “VENTANA SELECCIONAR ORIGEN DE DATOS” CLICK EN NUEVO.EN LA VENTANA “CREAR ORIGEN DE DATOS” DAR CLICK EN Microsoft Access driver (*.mdb, *.accdb ) Y CLICK SIGUIENTE

• EN LA VENTANA “CREAR NUEVO ORIGEN DE DATOS” CLICK EN “EXAMINAR” Y BUSCAR LA BD.

Page 6: Pasos Para Conectar Un Bd Con Vb

CLICK EN SIGUIENTE, CLICK EN FINALIZAR

• EN LA VENTANA “CONFIGURACIÓN DE CCOC” CLICK EN SELECCIONAR

Page 7: Pasos Para Conectar Un Bd Con Vb

BUSCAR LA BASE DE DATOS, CLICK EN

ACEPTAR

• Y CLICK ACEPTAR 4 VECES.

Page 8: Pasos Para Conectar Un Bd Con Vb

Propiedad RecordSource En la tabla origen de destinoTipo de comando2- adCmdTableAceptarTabla o nombre de procedimiento almacenadoSeleccionar la tabla

• Seleccionamos todas las cajas de texto

• PROPIEDAD DataSource• Seleccionar Adodc1

• PROPIEDAD DataField• Seleccionar cada campo

por cada caja de texto

Page 9: Pasos Para Conectar Un Bd Con Vb

PRODUCTO FINAL DONDE SE MUESTRA LA CONEXIÓN DE VB CON BD

Page 10: Pasos Para Conectar Un Bd Con Vb