I have a database with a form that was working just fine, however now after I split the Database I'm getting an error:
There is an invalid use of the . (dot) or ! operator or invalid Parentheses.
This is the code targeted by the Debugger
DoCmd.RunSQL ("Insert Into TestingStatistics (BadgeNumber, TestName, College, Instructor, SigninTime, Special) " & _
"Values ('" & Me.txtBadgeNo.Value & "', '" & strTestName & "', '" & strCollege & "', '" & strInstructor & "', Now(), '" & Me.chkSpecial.Value & "');")
When I remove the Me.txtBadgeNo.Value
and Me.chkSpecial.Value
"Values (" & strTestName & "', '" & strCollege & "', '" & strInstructor & "', Now());")
I get the error:
Syntax Error (Missing operator) in query expression 'Medicine', 'Medicine, 'Larsen', Now());'.
Again, this worked before I split the database, I need this insert statement to work, what's going on?