jack3_99
asked on
Could not delete from specified tables
I have set up a Delete query in Access. I am trying to delete records from the tblGLDetails table. The criteria is based on a date stored in the DateCreated field in the tblExtractDate table. There is only one date saved in the tblExtractDate table.
The records are displayed when I select View; however, I receive the error “Could not delete from specified tables” when I run the query.
Thank you in advance for your help.
The following is the SQL code for the query:
The following is the Design view of the Access Delete query:
The records are displayed when I select View; however, I receive the error “Could not delete from specified tables” when I run the query.
Thank you in advance for your help.
The following is the SQL code for the query:
DELETE tblGLDetails.*, tblGLDetails.DateCreated, tblGLDetails.Senario
FROM tblGLDetails, tblExtractDate
WHERE (((tblGLDetails.DateCreate d)>=[tblEx tractDate] ![DateCrea ted]) AND ((tblGLDetails.Senario)="A ctual"));
[/indent]FROM tblGLDetails, tblExtractDate
WHERE (((tblGLDetails.DateCreate
The following is the Design view of the Access Delete query:
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Basically the sub query idea ...
ASKER
It works great. Thank you for your help. I appreciate it very much.