E
EagleOne
2003
The following statement causes all records to be transferred in defiance of the WHERE statement.
dBs.Execute "INSERT INTO CHOOSEOffsets SELECT * FROM CHOOSERev" & _
" WHERE " & StartActualAmt & " = " & rs!Amt & " And " _
& "(('" & rs!DOV_NUMBER & " = " & DovNmbr & ") Or (" & rs!DOC_NUMBER & " = " & DocNmbr & "'))"
It seems that the WHERE clause is either ignored or nor allowed in an INSERT INTO statement.
Any assistance appreciated! Thanks
EagleOne
The following statement causes all records to be transferred in defiance of the WHERE statement.
dBs.Execute "INSERT INTO CHOOSEOffsets SELECT * FROM CHOOSERev" & _
" WHERE " & StartActualAmt & " = " & rs!Amt & " And " _
& "(('" & rs!DOV_NUMBER & " = " & DovNmbr & ") Or (" & rs!DOC_NUMBER & " = " & DocNmbr & "'))"
It seems that the WHERE clause is either ignored or nor allowed in an INSERT INTO statement.
Any assistance appreciated! Thanks
EagleOne