Forum Discussion

Harold_Weyburn's avatar
Harold_Weyburn
Copper Contributor
Dec 01, 2022

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_gp's avatar
    arnel_gp
    Steel Contributor
    check the FieldType of Active and Deceased fields. Are they all Yes/No field?
  • XPS35's avatar
    XPS35
    Iron 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

Resources