D
dins45768
I get the following error when trying to execute the code below
Run-time error '3075': Syntax error (missing operator) in query expression
'tblData_pck_Bnds.Pck_BndFROM tblDecode_KAM_Chain'.
Dim SQL As String
SQL = "INSERT INTO tblData_Activated_Pck_Bnds ( KAM, Chain, Pck_Bnd )" & _
"SELECT tblDecode_KAM_Chain.KAM, tblDecode_KAM_Chain.Chain,
tblData_Pck_Bnds.Pck_Bnd" & _
"FROM tblDecode_KAM_Chain, tblData_Pck_Bnds" & _
"WHERE (((tblDecode_KAM_Chain.KAM) = [Forms]![Parameters]![Sel_KAM])) and
strWhere and strWhere2"
DoCmd.RunSQL SQL
How do I fix this?
Run-time error '3075': Syntax error (missing operator) in query expression
'tblData_pck_Bnds.Pck_BndFROM tblDecode_KAM_Chain'.
Dim SQL As String
SQL = "INSERT INTO tblData_Activated_Pck_Bnds ( KAM, Chain, Pck_Bnd )" & _
"SELECT tblDecode_KAM_Chain.KAM, tblDecode_KAM_Chain.Chain,
tblData_Pck_Bnds.Pck_Bnd" & _
"FROM tblDecode_KAM_Chain, tblData_Pck_Bnds" & _
"WHERE (((tblDecode_KAM_Chain.KAM) = [Forms]![Parameters]![Sel_KAM])) and
strWhere and strWhere2"
DoCmd.RunSQL SQL
How do I fix this?