Syntax Error

swmorin

Registered User.
Local time
Today, 10:36
Joined
Jan 10, 2012
Messages
66
This is really bugging me

Code:
CurrentDb.Execute "INSERT INTO tbl_instructor_dates" _
          & "(Instructorid, dagb) " _
          & "(" & instridrs![instructorid] & " " & _
          ",# " & [Forms]![frm_create_instructor]![Text23] & " #;)"
 
Code:
CurrentDb.Execute "INSERT INTO tbl_instructor_dates" _
          & "(Instructorid, dagb) " _
          & "[b]VALUES[/b] (" & instridrs![instructorid] & " " & _
          ",# " & [Forms]![frm_create_instructor]![Text23] & " #)[b];[/b]"
 
thanks nellie i just noticed it was hoping to delete before i looked crazy stupid
 
heheh. During development I find it can be helpful to dump all of that into a string and debug.print it so I can see what the database thinks it's receiving versus what I think I'm sending it (plus you should be able to copy and paste the string output into the query designer to test there too).
 

Users who are viewing this thread

Back
Top Bottom