D
DS
I'm getting an operator Error on this, any help is appreciated.
Thanks
DS
DoCmd.SetWarnings False
RefDetSQL = "INSERT INTO tblVoidDetails " & _
"SELECT * FROM tblCheckDetails " & _
"WHERE tblCheckDetails.CDCheckID = Forms!frmFXVoidSelect!TxtCheckID " & _
"UNION " & _
"SELECT * FROM tblCheckDetailsTMP " & _
"WHERE tblCheckDetailsTMP.CDCheckID = Forms!frmFXVoidSelect!TxtCheckID;"
DoCmd.RunSQL (RefDetSQL)
DoCmd.SetWarnings True
Thanks
DS
DoCmd.SetWarnings False
RefDetSQL = "INSERT INTO tblVoidDetails " & _
"SELECT * FROM tblCheckDetails " & _
"WHERE tblCheckDetails.CDCheckID = Forms!frmFXVoidSelect!TxtCheckID " & _
"UNION " & _
"SELECT * FROM tblCheckDetailsTMP " & _
"WHERE tblCheckDetailsTMP.CDCheckID = Forms!frmFXVoidSelect!TxtCheckID;"
DoCmd.RunSQL (RefDetSQL)
DoCmd.SetWarnings True