Results 1 to 6 of 6
  1. #1
    kchm2000 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    16

    What are parameters for Yes/No field

    Hi,

    I was trying to write a query "Country and Active" to filter for specific country and yes under the IsActive field. If i want to query for yes or no or both yes and no what should i place in the criteria field for the Is Active field.

    Below is link to database https://www.dropbox.com/s/aof9jocoxx...018.accdb?dl=0

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I find your post a bit confusing. Can you be a little more more explicit by what you mean by "yes or no or both yes and no"?
    Let us know the exact conditions along with which fields each yes/no is applying to.

  3. #3
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    If i want to query for yes or no or both yes and no what should i place in the criteria field for the Is Active field.
    Place nothing. Then you'll get all possible conditions: Yes or No or neither. A yes/no field can not ever be both.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    kchm2000 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    16
    thanks for your reply. Actually i wanted to ask if i had a pop up box for the query like the one i did for selecting country, and i did the same for the isActive field, what do i input in the pop up box so that i can get all records regardless for yes or no.

    When i tried to update nothing for the pop up box, there were no entries in the query. I have updated the query so that there are pop up boxes for the country selection and IsActive field. Below is the new link. thanks for help
    https://www.dropbox.com/s/sip55fiufm...018.accdb?dl=0

  5. #5
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    IMHO, you can't do this, nor should you want to. Either have the issue prompt and be willing to accept either yes or no AND have a separate query for no prompt
    OR
    do what you should be doing, which is build a form with 3 option buttons in an option group: Yes, No and All (or something like that).
    Posting a zipped copy of your db here is preferred over drop boxes. Some can't or won't retrieve such files, and when the user removes the file, no one can learn by following through on the posts.

    You could put the country prompt in the next row of your query (the OR row) but it would be pointless. It would return all for the given country regardless of what you enter for the issue prompt, so it makes no sense.
    Last edited by Micron; 04-03-2017 at 10:39 PM. Reason: grammar
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    kchm2000 is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    16
    ok i understand now thanks, i will zip the files from here on out. Thank you

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 07-02-2015, 10:39 PM
  2. Replies: 2
    Last Post: 05-01-2014, 01:28 PM
  3. Replies: 3
    Last Post: 03-13-2013, 04:00 PM
  4. form and field name as sub-routine parameters
    By eric.opperman1@gmail.com in forum Programming
    Replies: 5
    Last Post: 04-18-2011, 08:51 AM
  5. Replies: 1
    Last Post: 03-05-2011, 03:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums