J
jimphilly
I'm getting an error code 3346, "Number of query values and destination
fields are not the same" when I attempt to run the following code
strNUMBER = Me.Number.Value
strAY = "07/08"
strSQL = "INSERT INTO EMPLOYMENT ([Number], [ACAD_YR]) Values (""" &
strNumber & """),(""" & strAY & """)"
MsgBox strSQL
DoCmd.RunSQL strSQL
When the message box, displaying the SQL string, comes up the string looks
right. I'm baffled.
Thanks for the help
fields are not the same" when I attempt to run the following code
strNUMBER = Me.Number.Value
strAY = "07/08"
strSQL = "INSERT INTO EMPLOYMENT ([Number], [ACAD_YR]) Values (""" &
strNumber & """),(""" & strAY & """)"
MsgBox strSQL
DoCmd.RunSQL strSQL
When the message box, displaying the SQL string, comes up the string looks
right. I'm baffled.
Thanks for the help