I have the following code in an Access DB (.mdb) that gives me an error now that all my tables have been upsized to SQL Server.
[blue]GetBillingAmount[/blue] is a function to return the BillingAmount and it works fine.
The last line (DB.Execute QryTxt) produces this error: You must use the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an IDENTITY column.
Is there any way to use the dbSeeChanges option with this code? I know where to use it with the OpenRecordset code, but do not know where to put it in code that is executing an update query.
Any ideas?
Thanks,
Vic
Code:
Dim QryTxt as String
Dim DB as DAO.Database
Set DB = CurrentDB()
QryTxt = "UPDATE tblJob SET BillingAmount = " & _
[blue]GetBillingAmount[/blue](JobID) & " " & _
WHERE JobID=" & JobID & ";"
DB.Execute QryTxt
The last line (DB.Execute QryTxt) produces this error: You must use the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an IDENTITY column.
Is there any way to use the dbSeeChanges option with this code? I know where to use it with the OpenRecordset code, but do not know where to put it in code that is executing an update query.
Any ideas?
Thanks,
Vic