This is the raw SQL from a saved delete query - I need to assign this to a
string so I can execute it using DoCmd.RunSQL. The value of 1 needs to be
replaced with a reference to Me.txtPupilID. Other than that I can't get the
syntax correct. Can anyone correct it for me, it's a bit trial and error
here....
DELETE tblPupilIncidentLink.*, tblPupilIncidentLink.PupilID,
tblPupilIncidentLink.IncidentID
FROM tblPupilIncidentLink
WHERE (((tblPupilIncidentLink.PupilID)=1) AND
((tblPupilIncidentLink.IncidentID)=[forms]![frmIncidentsListBox_version].[In
cidentID]));