Hello,
I'm not sure if this SQL is possible, but this is what I need to do. I have a form with two variables I need to use. With these variables I need to insert them along with values from fields in a table, based on one of the variables. Now, the table I need to insert into does not relate to the table I'm pulling records from. The following code shows what I'm trying to do:
sqlString = "INSERT INTO tbl_Str_and_Signal_Temp VALUES([tbl_Engineering_Signal_List].SIG_ID,[tbl_Engineering_Signal_List].NAME, '" & strNumber & "', 'NO') WHERE Instr([tbl_Engineering_Signal_List].SIG_ID, '" & systemString & "')"
DoCmd.RunSQL (sqlString)
This is where I get the '3067' run-time error. Also, there are multiple records with the criteria of 'systemString'. How should I go about this?
Cheers,
Brendan
I'm not sure if this SQL is possible, but this is what I need to do. I have a form with two variables I need to use. With these variables I need to insert them along with values from fields in a table, based on one of the variables. Now, the table I need to insert into does not relate to the table I'm pulling records from. The following code shows what I'm trying to do:
sqlString = "INSERT INTO tbl_Str_and_Signal_Temp VALUES([tbl_Engineering_Signal_List].SIG_ID,[tbl_Engineering_Signal_List].NAME, '" & strNumber & "', 'NO') WHERE Instr([tbl_Engineering_Signal_List].SIG_ID, '" & systemString & "')"
DoCmd.RunSQL (sqlString)
This is where I get the '3067' run-time error. Also, there are multiple records with the criteria of 'systemString'. How should I go about this?
Cheers,
Brendan