G
Guest
Hi
Previously I received help from Allen B, MVP. If you are around can you help again. Thank you for the last date. I am still trying to do a subquery to find all donors who have not donated in a time period, 2 years as an example. There are 2 primary tables.
Donors
Cashgifts
I tried to write the query, but I am getting syntax errors. The primary key is DonorNum
In my query I included the following fields from Donor.
DonorNum
LastName
FirstName
Address
City
St
Zip
From the Cashgifts I included.
CashgiftID
DonorNum
Date
The sub query written was
SELECT * FROM Donors WHERE NOT EXISTS (SELECT Cashgiftid from Cashgifts (Date >= DateAdd ("yyyy",2,date())) And (Cashgifts.DonorNum=Donors.DonorNum))
Thanks for any help.
Jeff
Previously I received help from Allen B, MVP. If you are around can you help again. Thank you for the last date. I am still trying to do a subquery to find all donors who have not donated in a time period, 2 years as an example. There are 2 primary tables.
Donors
Cashgifts
I tried to write the query, but I am getting syntax errors. The primary key is DonorNum
In my query I included the following fields from Donor.
DonorNum
LastName
FirstName
Address
City
St
Zip
From the Cashgifts I included.
CashgiftID
DonorNum
Date
The sub query written was
SELECT * FROM Donors WHERE NOT EXISTS (SELECT Cashgiftid from Cashgifts (Date >= DateAdd ("yyyy",2,date())) And (Cashgifts.DonorNum=Donors.DonorNum))
Thanks for any help.
Jeff