Looking for some help. I have a delete query that does not appear to be working. I have two tables (tblCurrentTimeOff and tblEmployee). When the query runs, if tblCurrentTimeOff.EmployeeNumber matches an EmployeeNumber in tblemployee I would like to delete that record in tblEmployee.
I thought this was working before but it appears not to be. Here is the SQL that I am using:
Can anyone help me get this working? Much appreciated!
Paul
I thought this was working before but it appears not to be. Here is the SQL that I am using:
Code:
DELETE DISTINCTROW tblemployee.*
FROM tblemployee INNER JOIN tblCurrentTimeOffTuesday ON tblemployee.EmployeeNumber = tblCurrentTimeOffTuesday.EmployeeNumber;
Can anyone help me get this working? Much appreciated!
Paul