I have a challenge with an Access program. I have a SQL backend, and I have one form (just one) that is causing an error:
Dim strLogon As String
Dim strSQL As String
Dim rstRS As Recordset
strLogon = Me!Logon
strSQL = "SELECT * FROM tblUsers ORDER BY UserInitials"
Me.RecordSource = strSQL
Set rstRS = Me.Recordset.Clone
rstRS.FindFirst "[Logon] = '" & strLogon & "'"
Me.Bookmark = rstRS.Bookmark
DoCmd.GotoRecord acActiveDataObject, , acNext
Me.AllowAdditions = False
Me.AllowEdits = False
Form_Refresh
The line that causes the error is here:
Me.RecordSource = strSQL
I get an error about using dbSeeChanges when using OpenRecordset in a table that has an identity column. Now the REALLY weird part is that my table doesn't HAVE an identitiy column. I am totally unsure of what is causing this issue.
The error is coming from SQL, and then it proceeds with all my other code.
Any help would be greatly appreciated.
Thanks.
Vee
ASKER
Go figure. Thank you for the input, though.
Hmmmm....