Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Queries Won't Work!!!

Status
Not open for further replies.

Only1Abhi

Technical User
Jan 26, 2003
77
GB
Hi ppl.
Simple Problem.
I have an archive system in my DB.
However, the Delete query is NOT working and it shows EXTRA fields in the "Datasheet View".

Where have these extra fields come from?
How can I get rid of these?
How can I get the Delete queries to work properly?

There is also a problem on the append queries that says:
"Microsoft Access can't append all the records in the query".

Many thanks to every1 in advance.
Best Regards,
Abhi
:eek:)

Here is a link to download my DB...
 
I had a quick look at your database. If you change your qryOldTransactions query so that it is not a Total query, and set the Unique Values property to Yes, and untick the 'Show' for the DateOfTransaction value, you should find that the DeleteQuery works ... it doesnt like being 'mixed' with a Total query.

The SQL for the qryOldTransactions when you've done the above should look something like this:

SELECT DISTINCT tblTransaction.CustomerID
FROM tblCustomer
INNER JOIN tblTransaction
ON tblCustomer.CustomerID = tblTransaction.CustomerID
WHERE tblTransaction.DateOfTransaction <Date()-90;

Hope this helps,


Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
 
Thanks man... problem solved...

Best Regards,
Abhi
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top