I have a 'delete query' to remove 'leavers' from my main table [Mail List]. It works well. I have another table [GroupMembers] from which I require to delete relevant records of 'leavers' simultaneously.
Can anyone suggest why the following SQL code fails to work. It brings up a dialogue box which says 'specify the table containing records to delete.', but the 2 tables are listed in the code and in the design view of the query.
Quote DELETE [Mail List].[Member ID], [Mail List].Surname, [Mail List].[First Name], [Mail List].Phone, [Mail List].[E-Mail], [Mail List].Leaving, GroupMembers.[Group ID], GroupMembers.[Member ID], GroupMembers.[Group Name], GroupMembers.[Member Name]
FROM [Mail List] LEFT JOIN GroupMembers ON [Mail List].[Member ID] = GroupMembers.[Member ID]
WHERE ((([Mail List].Leaving)=True));Unquote
Regards,
jcbhydro
Can anyone suggest why the following SQL code fails to work. It brings up a dialogue box which says 'specify the table containing records to delete.', but the 2 tables are listed in the code and in the design view of the query.
Quote DELETE [Mail List].[Member ID], [Mail List].Surname, [Mail List].[First Name], [Mail List].Phone, [Mail List].[E-Mail], [Mail List].Leaving, GroupMembers.[Group ID], GroupMembers.[Member ID], GroupMembers.[Group Name], GroupMembers.[Member Name]
FROM [Mail List] LEFT JOIN GroupMembers ON [Mail List].[Member ID] = GroupMembers.[Member ID]
WHERE ((([Mail List].Leaving)=True));Unquote
Regards,
jcbhydro