Richard Jones
Aug 11th, 2000, 03:49 AM
Please help.
Take a look at this SQL string...
SELECT tblPod_NEW.DEVICEID, tblPod_NEW.PICKNO, _
tblPod_NEW.ADDRESS1, tblPod_NEW.ADDRESS4, tblPod_NEW.TTLWEIGHT, tblPod_NEW.NOMOD, tblPod_NEW.MODS, tblPod_NEW.SIGN, tblPod_NEW.CONTACT, tblPod_NEW.TIMEDATE
FROM tblPod_NEW LEFT JOIN tblPod_DB ON tblPod_NEW.PICKNO = tblPod_DB.PICKNO
WHERE ((tblPod_NEW.SIGN) Is Null)
It is basically 2 tables which contain the same information.
tblPod_DB has a SIGN field with data entered.
tblPod_NEW has a SIGN field with no data entered.
Ive been trying to create a recordset that compares the 2 tables. If a record exists in _DB with data in the SIGN field, the resultant recordset should contain the duplicate entry in _NEW but without the SIGN data. And this then needs to be deleted from the _NEW table.
Ive managed to create the recordset resultant but cant work out how to delete it from _NEW.
Can anyone please help?
Take a look at this SQL string...
SELECT tblPod_NEW.DEVICEID, tblPod_NEW.PICKNO, _
tblPod_NEW.ADDRESS1, tblPod_NEW.ADDRESS4, tblPod_NEW.TTLWEIGHT, tblPod_NEW.NOMOD, tblPod_NEW.MODS, tblPod_NEW.SIGN, tblPod_NEW.CONTACT, tblPod_NEW.TIMEDATE
FROM tblPod_NEW LEFT JOIN tblPod_DB ON tblPod_NEW.PICKNO = tblPod_DB.PICKNO
WHERE ((tblPod_NEW.SIGN) Is Null)
It is basically 2 tables which contain the same information.
tblPod_DB has a SIGN field with data entered.
tblPod_NEW has a SIGN field with no data entered.
Ive been trying to create a recordset that compares the 2 tables. If a record exists in _DB with data in the SIGN field, the resultant recordset should contain the duplicate entry in _NEW but without the SIGN data. And this then needs to be deleted from the _NEW table.
Ive managed to create the recordset resultant but cant work out how to delete it from _NEW.
Can anyone please help?