D
DS
I'm trying to insert all records that meet a certain criteria and I'm
getting an error.
Whats wrong with my syntax?
Thanks
DS
Dim NewItemSQL
NewItemSQL = "INSERT * INTO tblCheckDetailsTMP " & _
"SELECT * FROM tblCheckDetailsTMP " & _
"WHERE tblCheckDetailsTMP.CDCheckID=Forms!frmFXTransferSelect!TxtCheckID " &
_
"AND tblCheckDetailsTMP.CDGroupID = Forms!frmFXTransferItem!TxtGroupID;"
DoCmd.RunSQL (NewItemSQL)
getting an error.
Whats wrong with my syntax?
Thanks
DS
Dim NewItemSQL
NewItemSQL = "INSERT * INTO tblCheckDetailsTMP " & _
"SELECT * FROM tblCheckDetailsTMP " & _
"WHERE tblCheckDetailsTMP.CDCheckID=Forms!frmFXTransferSelect!TxtCheckID " &
_
"AND tblCheckDetailsTMP.CDGroupID = Forms!frmFXTransferItem!TxtGroupID;"
DoCmd.RunSQL (NewItemSQL)