
20/10/2004, 18:10
|
 | Colaborador | | Fecha de Ingreso: diciembre-2003 Ubicación: Antigua Guatemala
Mensajes: 4.032
Antigüedad: 21 años, 2 meses Puntos: 53 | |
tendrias que usar este codigo
Dim i As Integer
Dim db As Connection
dim BasePath as string
Dim adoPrimaryRS As Recordset
Set db = New Connection
Set adoPrimaryRS = New Recordset
db.CursorLocation = adUseClient
BasePath = "Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Uid=Admin;Pwd=;"
db.Open BasePath
adoPrimaryRS.Open "select * from servicios order by id_servicio", db, adOpenStatic, adLockOptimistic
' donde Uid= Admin es el administrador el default y Pwd es la contraseña
__________________ * Antes de preguntar lee las FAQ, y por favor no hagas preguntas en las FAQ
Sitio http://www.geoavila.com twitter: @GeoAvila |