darkstarjk
MIS
I have the following Table:
DELETE [Details - Expenses (Check Detail)].*, [Details - Expenses].CompanyID
FROM [Details - Expenses (Check Detail)] LEFT JOIN [Details - Expenses] ON [Details - Expenses (Check Detail)].CheckNumber = [Details - Expenses].CheckNumber
WHERE ((([Details - Expenses].CompanyID) Like [Forms]![LIST OF NAMES - Edit Vendor-Contributor Name]![CompanyID]));
Whenever I try to run the query I get the follwing error:
Could not delete from specified tables. (Error 3086)
Here is what I am trying to accomplish:
I have a table which contains check information: Date, check number, description of the check and check amount).
Below this is another table which conains the following:
Check number, detail, detail amount
I have created a delete query and am trying to delete the detail based on a query. The query checks the company ID to make sure there is a match. Then I have 1 - 1 relation ship with this other table, which assigns all the check numbers. The query I am trying to build then uses that information to delete all check details.
I hope this isn't confusing but any help would be appreciated.
Thanks
DELETE [Details - Expenses (Check Detail)].*, [Details - Expenses].CompanyID
FROM [Details - Expenses (Check Detail)] LEFT JOIN [Details - Expenses] ON [Details - Expenses (Check Detail)].CheckNumber = [Details - Expenses].CheckNumber
WHERE ((([Details - Expenses].CompanyID) Like [Forms]![LIST OF NAMES - Edit Vendor-Contributor Name]![CompanyID]));
Whenever I try to run the query I get the follwing error:
Could not delete from specified tables. (Error 3086)
Here is what I am trying to accomplish:
I have a table which contains check information: Date, check number, description of the check and check amount).
Below this is another table which conains the following:
Check number, detail, detail amount
I have created a delete query and am trying to delete the detail based on a query. The query checks the company ID to make sure there is a match. Then I have 1 - 1 relation ship with this other table, which assigns all the check numbers. The query I am trying to build then uses that information to delete all check details.
I hope this isn't confusing but any help would be appreciated.
Thanks