Help, Please tell me whats wrong with my SQL syntax; am getting a data mismatch error.
POCreation is a blank table where I want to append data from
POparts for only a certain PO number
POnumber is Long Integer
strPOnumber is a variable where i input the POnumber i want to append.
DoCmd.RunSQL "INSERT INTO POCreation SELECT * FROM [POparts] WHERE [POnumber] = '" & strPOnumber & "'"
POCreation is a blank table where I want to append data from
POparts for only a certain PO number
POnumber is Long Integer
strPOnumber is a variable where i input the POnumber i want to append.
DoCmd.RunSQL "INSERT INTO POCreation SELECT * FROM [POparts] WHERE [POnumber] = '" & strPOnumber & "'"