F
fishy
I am trying to delete all records from tbl_XXdata where the tbl_MSEmployees
shows a leaving date against it. I have the following code but keep getting
the error:
'Specify the table containg the records you wish to delete'
DELETE [tbl_Street_Names].[StreetNameID], tbl_MSemployees.[Date Left]
FROM tbl_XXDATA INNER JOIN tbl_MSemployees ON tbl_XXDATA.[Employee number] =
tbl_MSemployees.[Employee number]
WHERE ((([tbl_Street_Names].[StreetNameID]) In (SELECT EmployeeNumber
FROM [tbl_MSEmployees])) AND ((tbl_MSemployees.[Date Left]) Is Not Null));
Any help would be appreciated as I have been trying a number of ways but as
soon as I link the tables the query fails.
The date left field does not exist in the tbl_xxData
shows a leaving date against it. I have the following code but keep getting
the error:
'Specify the table containg the records you wish to delete'
DELETE [tbl_Street_Names].[StreetNameID], tbl_MSemployees.[Date Left]
FROM tbl_XXDATA INNER JOIN tbl_MSemployees ON tbl_XXDATA.[Employee number] =
tbl_MSemployees.[Employee number]
WHERE ((([tbl_Street_Names].[StreetNameID]) In (SELECT EmployeeNumber
FROM [tbl_MSEmployees])) AND ((tbl_MSemployees.[Date Left]) Is Not Null));
Any help would be appreciated as I have been trying a number of ways but as
soon as I link the tables the query fails.
The date left field does not exist in the tbl_xxData