I am using access database. The following is the code used to connect to the database
'*********
strConn = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=c:\XXXX.mdb;pwd=xxxx;"
Set conn = New ADODB.Connection
Set adors = New ADODB.Recordset
Set updateuser = New ADODB.Recordset
conn.Open (strConn)
Set adors.ActiveConnection = conn
'***********
How can I populate data from this 'adors' recordset into a data component?
Set Data1.Recordset = dbAccess.OpenRecordset("select * from table1")
'*********
strConn = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=c:\XXXX.mdb;pwd=xxxx;"
Set conn = New ADODB.Connection
Set adors = New ADODB.Recordset
Set updateuser = New ADODB.Recordset
conn.Open (strConn)
Set adors.ActiveConnection = conn
'***********
How can I populate data from this 'adors' recordset into a data component?
Set Data1.Recordset = dbAccess.OpenRecordset("select * from table1")