strSQL ="Delete * from Patients " & _
WHERE Treatment.[treatdate] Not Between #01/01/1999# And #12/31/1999#;
docmd.runsql strSQL
Hi the above code is not working i would like to delete all the data in patients table based on criteria on treatment tables treatdate.
Patient is the primary table has relationship of one to many.
got all my referential integrity to work but the criteria field is based in treatment table which is not the primary table.
any suggestions?
any suggestions