Results 1 to 5 of 5
  1. #1
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672

    If/Then Query

    I have a form, and on this form, there is a tick box for of course "Yes" and "No." I want to be able to query off of this tick box, and show the records, that are checked as "yes" in one query, and then the records checked "no" in another query. How do I do this?!

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    you can't do this with 2 different queries easily. you'll need 2 differents.

  3. #3
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    How would I set it up to display in two sepeate queries?

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    what you want is unclear. but say you had a table with a "yes/no" column in it and you wqnt to query based off of the tickbox in the form. I would assume this would work:
    Code:
    select whatever from table
    
    where yesnofield = iif(forms!formname!tickbox = -1, -1, 0)

  5. #5
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    i have a tickbox that i will check if the documents are originals. i am wating to build 2 queries; one that will display all of the checked boxes, and one that will display the non-checked boxes. does that make more sense on what i am needing? thanks again!

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

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