D
DS
Do I need to refer to the outside dB twice or is this ok?
Thanks
DS
AllSQL = "INSERT INTO tblTransferDetails (IN '" & REDACT() & "'" & _
"TDQuantity, TDItemID )" & _
"SELECT tblCheckDetailsTMP.CDQuantity, tblCheckDetailsTMP.CDItemID " & _
"FROM tblCheckDetailsTMP IN '" & REDACT() & "'" & _
"WHERE tblCheckDetailsTMP.CDCheckID=Forms!frmFXTransferSelect!TxtOldCheckID
" & _
"AND tblCheckDetailsTMP.CDLineID = Forms!frmFXTransferItem!TxtLeftLine;"
DoCmd.RunSQL (AllSQL)
REDACT() is a function with the path to the outside DB
Thanks
DS
AllSQL = "INSERT INTO tblTransferDetails (IN '" & REDACT() & "'" & _
"TDQuantity, TDItemID )" & _
"SELECT tblCheckDetailsTMP.CDQuantity, tblCheckDetailsTMP.CDItemID " & _
"FROM tblCheckDetailsTMP IN '" & REDACT() & "'" & _
"WHERE tblCheckDetailsTMP.CDCheckID=Forms!frmFXTransferSelect!TxtOldCheckID
" & _
"AND tblCheckDetailsTMP.CDLineID = Forms!frmFXTransferItem!TxtLeftLine;"
DoCmd.RunSQL (AllSQL)
REDACT() is a function with the path to the outside DB