Hi,
Tried this on the server forum and they told me it was an access question.
This code worked fine until I uploaded the tables to the server.
Can anyone see why I am getting this error message:
"You must use the dbseechanges option with openrecordset when accessing a sql server table that has an identity collumn"
with this:
'strSQL = "UPDATE tblRecords SET tblRecords.HRAdviser = '" & [Forms]![FormMain].[Form]![FormSubMainRecords]![TextUserName] & "'" & _
'"WHERE tblRecords.HRAdviser Is Null AND tblRecords.RecId=" & [Forms]![FormMain].[Form]![FormSubMainRecords]![RecId]
'CurrentDb.Execute strSQL, dbFailOnError
Tried this on the server forum and they told me it was an access question.
This code worked fine until I uploaded the tables to the server.
Can anyone see why I am getting this error message:
"You must use the dbseechanges option with openrecordset when accessing a sql server table that has an identity collumn"
with this:
'strSQL = "UPDATE tblRecords SET tblRecords.HRAdviser = '" & [Forms]![FormMain].[Form]![FormSubMainRecords]![TextUserName] & "'" & _
'"WHERE tblRecords.HRAdviser Is Null AND tblRecords.RecId=" & [Forms]![FormMain].[Form]![FormSubMainRecords]![RecId]
'CurrentDb.Execute strSQL, dbFailOnError