Autor Tema: ¿como UTILIZAR UNA PLANILLA DE EXCEL COMO BASE DE DATOS?  (Leído 2847 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Bazooka

  • Terabyte
  • *****
  • Mensajes: 951
  • Reputación: +31/-20
  • El pibe Bazooka
    • Ver Perfil
    • Desof sistemas
¿como UTILIZAR UNA PLANILLA DE EXCEL COMO BASE DE DATOS?
« en: Marzo 30, 2013, 10:12:58 pm »
HOLA AMIGOS TENGO UN PROCEDIMIENTO SENCILLO QUE LEE LOS DATOS DE UNA BD ACCESS Y TENGO LA NECESIDAD DE HACERLO SI ES PSOIBLE DESDE UNA PLANILLA DE CALCULO YA QUE SU ESTRUCTURA ES SIMPLE CON 4 COLUMNAS Y ID, NOMBRE, DOMICILIO Y LOCALIDAD Y DEBIERA BUSCAR POR EL ID PARA QUE ME DEVUELVA TODA LA FILA COMO LO HACE EL PROCEDIMIENTO QUE POSTEO.


Código: [Seleccionar]
Call AbrirBase(App.Path & "\datos.mdb")

strSql = "SELECT * From COMPRADORES WHERE ID=" & ID_ACTUAL & " ;"

rsRef.Open strSql, DB, adOpenKeyset, adLockOptimistic, adCmdText

If Not rsRef.EOF Then
   tx(0) = rsRef!COMPRADOR
   tx(1) = rsRef!DOMICILIO
   tx(2) = rsRef!Localidad
 End If

Set rsRef = Nothing
Call CerrarBase
Todos somos muy ignorantes. Lo que ocurre es que no todos ignoramos las mismas cosas.

Albertomi

  • Gigabyte
  • ****
  • Mensajes: 281
  • Reputación: +153/-0
    • Ver Perfil
Re:¿como UTILIZAR UNA PLANILLA DE EXCEL COMO BASE DE DATOS?
« Respuesta #1 en: Abril 01, 2013, 08:00:31 pm »
Estimado Bazooka
 
 
En el siguiente link dispones de información de cómo usar un archivo Excel como una base de datos haciendo uso de ADO, espero te pueda ser de utilidad.
 
http://support.microsoft.com/kb/257819/en-us
 
 
Saludos, desde algún lugar de lima - Perú
Saludos, desde algún lugar de Lima-Perú

Bazooka

  • Terabyte
  • *****
  • Mensajes: 951
  • Reputación: +31/-20
  • El pibe Bazooka
    • Ver Perfil
    • Desof sistemas
Re:¿como UTILIZAR UNA PLANILLA DE EXCEL COMO BASE DE DATOS?
« Respuesta #2 en: Abril 02, 2013, 06:34:02 pm »
gracias amigo Albertoni!! Solucionado!!
Todos somos muy ignorantes. Lo que ocurre es que no todos ignoramos las mismas cosas.