I have a simple delete query.
Made up of 2 queries.
Query 1 [Upper and Lower dates] finds the max and min out of set of records [Lower1]
Query 2 contains the data.[Demand]
What I want to do is delete the data that is less than [Demand].[WkYr]
DELETE DISTINCTROW demand.*, demand.WkYr
FROM demand, [Upper and Lower Dates]
WHERE (((demand.WkYr)<[Lower1]));
When I look at the datasheet the data is correct that I want to delete, but the query falls over when I run it. "Could Not Delete from Specified Tables"
I have set the Unique records to YES.
Cheers
Andy
Made up of 2 queries.
Query 1 [Upper and Lower dates] finds the max and min out of set of records [Lower1]
Query 2 contains the data.[Demand]
What I want to do is delete the data that is less than [Demand].[WkYr]
DELETE DISTINCTROW demand.*, demand.WkYr
FROM demand, [Upper and Lower Dates]
WHERE (((demand.WkYr)<[Lower1]));
When I look at the datasheet the data is correct that I want to delete, but the query falls over when I run it. "Could Not Delete from Specified Tables"
I have set the Unique records to YES.
Cheers
Andy