I've got a table called {Cadets}, and a form called {addCadets}.
Cadets table has the following fields: {Cdt_ID} (PK field), {Class_ID], {L_Name}, {F_Name}, {Det_Email}, {Phone}, {Tag_ID}, and {Active} [A checkbox/t-f flag]
My form is inserting dynamic data from 5 unbound fields into {L_Name}, {F_Name}, {Class_ID}, {Det_Email}, and {Phone}; and inserting a static Null into the {Tag_ID} field. The command that I'm using:
DoCmd.RunSQL "INSERT INTO Cadets ( Class_ID, L_Name, F_Name, Det_Email, Phone, Tag_ID, Active) VALUES (" & Me.Class_ID & ", " & " '" & Me.L_Name & "', " & " '" & Me.F_Name & "', " & " '" & Me.Det_Email & "', " & " '" & Me.Phone & "', " & Tag & ", " & Active & ")"
keeps getting flagged for a Syntax error. Coworker of mine and I can't find the syntax error, even after combing it over closely. We're using Access 2001-2013, latest versions and so forth. The form generates all the data correctly into a message box, but won't write it into the table due to the syntax error.