I am connecting to an Access 2000 database through VB6. For some reason it doesn't like the .Edit on my ADODB.Recordset object. It gives me an "Method or data member not found". Here is an example of my code:
Public gdbDatabase As ADODB.Connection
Public gdbTableO As ADODB.Recordset
Set gdbDatabase = New ADODB.Connection
gdbDatabase.Provider = "Microsoft.Jet.OLEDB.4.0"
gdbDatabase.ConnectionString = "C:\database.mdb"
gdbDatabase.Open
Set gdbTableO = New ADODB.Recordset
Set gdbTableO.ActiveConnection = gdbDatabase
gdbTableO.Source = "SELECT * FROM table"
gdbTableO.CursorLocation = adUseClient
gdbTableO.CursorType = adOpenStatic
gdbTableO.LockType = adLockOptimistic
gdbTableO.Open
gdbTableO.Edit
gdbTableO!Date = Date
gdbTableO.Update
Public gdbDatabase As ADODB.Connection
Public gdbTableO As ADODB.Recordset
Set gdbDatabase = New ADODB.Connection
gdbDatabase.Provider = "Microsoft.Jet.OLEDB.4.0"
gdbDatabase.ConnectionString = "C:\database.mdb"
gdbDatabase.Open
Set gdbTableO = New ADODB.Recordset
Set gdbTableO.ActiveConnection = gdbDatabase
gdbTableO.Source = "SELECT * FROM table"
gdbTableO.CursorLocation = adUseClient
gdbTableO.CursorType = adOpenStatic
gdbTableO.LockType = adLockOptimistic
gdbTableO.Open
gdbTableO.Edit
gdbTableO!Date = Date
gdbTableO.Update