troubleshooting Question

Designate table to delete records from in a Delete Query

Avatar of giswest
giswest asked on
Microsoft Access
3 Comments1 Solution308 ViewsLast Modified:
I'm working with a Delete Query that includes two joined tables, and I'm having an issue figuring out how to designate the table that I want to delete records from.  I've looked at several of the EE "DELETE * FROM" examples, but I can't seem to get the query configured properly.

This is the query that I started with:

DELETE CompSales_Beta.Sale_Index, CompSales_Beta.Date_Modified AS Comps_Mod_Date, Archived_CompSales.Date_Modified AS Arch_Mod_Date
FROM CompSales_Beta INNER JOIN Archived_CompSales ON CompSales_Beta.Sale_Index = Archived_CompSales.Sale_Index
WHERE (((CompSales_Beta.Date_Modified)<[Arch_Mod_Date]));

Any input is appreciated

Thank you.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros