Unfortunately I can't post it because it contains sensitive data, but I can try to elaborate on the structure and everything. I will also attempt to strip it down to the basic elements so that I can post it. Unfortunately I have had zero success narrowing down the problem. Just for reference, here is the current script I am trying to run:
Option Compare Database
Option Explicit
Private Sub Form_AfterUpdate()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim SQLstring As String
Set db = CurrentDb
SQLstring = "SELECT * FROM Employee_Data WHERE EMP_ID = " & Me.EMP_ID
'Debug.Print SQLstring
Set rs = db.OpenRecordset(SQLstring, dbOpenDynaset)
With rs
.Edit
!LastUpdate = Now()
!LastUpdateID = ReturnUserName
.Update
End With
rs.Close
Set rs = Nothing
Set db = Nothing
End Sub
Again, it produces Error 3061, with
SELECT * FROM Employee_Data WHERE EMP_ID = ????????
showing up in the intermediate window. I have no issues when I test with other fields, only my primary key (EMP_ID), which is a replication ID. I have checked multiple times for spelling errors.
Basically, I have the Employee_Data table with the basic information for each employee, and really basic form for editing the data (for now, as I am just trying to nail down the code at this point). There are no combo boxes or anything, just basic controls. Let me know how I can elaborate while I work on creating a sandbox database for problem specific testing.
Again, thank you so much for the help.
V/R
Josh