D
Dennis
I'm using ADO methodology to open, read, and add records to a SQL table.
However, when I get to RecSet.Update, I get an error:
Run-time error '-2147217887 (80040e21)';
ODBC -- call failed.
Here's my code:
Dim dbConn As ADODB.Connection
Dim recset As ADODB.Recordset
Set dbConn = CurrentProject.Connection
Set recset = New ADODB.Recordset
recset.CursorLocation = adUseServer
recset.CursorType = adOpenKeyset
recset.LockType = adLockOptimistic
recset.Open "dbo_tbInstallSteps", dbConn, , , adCmdTable
recset.AddNew
recset!field1 = 'something'
However, when I get to RecSet.Update, I get an error:
Run-time error '-2147217887 (80040e21)';
ODBC -- call failed.
Here's my code:
Dim dbConn As ADODB.Connection
Dim recset As ADODB.Recordset
Set dbConn = CurrentProject.Connection
Set recset = New ADODB.Recordset
recset.CursorLocation = adUseServer
recset.CursorType = adOpenKeyset
recset.LockType = adLockOptimistic
recset.Open "dbo_tbInstallSteps", dbConn, , , adCmdTable
recset.AddNew
recset!field1 = 'something'