Forum Discussion
Query Formula Question
Hi: I have a simple database. I want to display all current members and all members who have prepaid. The date fields in the image is working as I like. Now, I want to remove Deceased members and ensure only Active members are returned in the query. This is not working. I am still getting Deceased members and non active members in my query. What am I doing wrong?
- arnel_gpSteel Contributorcheck the FieldType of Active and Deceased fields. Are they all Yes/No field?
- XPS35Iron Contributor
Your criteria select members that
(are active and not deceased) OR meet date condition1 OR meet date condition2
I think what you want is all members that
(are active and not deceased and meet date condition1) OR(are active and not deceased and meet date condition2)
So make two lines on the criterion section
True, False, blank, Year(Date())
True, False, >Date(), blank Hi,
If you don't succeed then go to the SQL view of the query and copy the current SQL text into your next message here.
Servus
Karl
************
Access News
Access DevCon- Harold_WeyburnCopper ContributorThank You. It works