S
SAC
I have an ODBC connection to a sql server db.
I'm trying to add a record using dao recordset. I get the error: "ODBC Call
Failed."
Here's the code:
Function TestTmp()
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("dbo_tblTmpQuery3Test", dbOpenDynaset,
dbSeeChanges)
rs.AddNew
rs!PHENDT = 1
rs.Update
rs.Close
db.Close
Set rs = Nothing
Set db = Nothing
End Function
I get the error on the rs.Update line.
Thanks.
I'm trying to add a record using dao recordset. I get the error: "ODBC Call
Failed."
Here's the code:
Function TestTmp()
Dim db As Database
Dim rs As Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("dbo_tblTmpQuery3Test", dbOpenDynaset,
dbSeeChanges)
rs.AddNew
rs!PHENDT = 1
rs.Update
rs.Close
db.Close
Set rs = Nothing
Set db = Nothing
End Function
I get the error on the rs.Update line.
Thanks.