Results 1 to 2 of 2
  1. #1
    pmatush is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    11

    What command to include both yes and no checkboxes?

    So I have a checkbox in a form, when selected, the query should only selects records that have a certain checkbox field ticked. when the form checkbox is left blank, i want it to show all records. My code is as follows:

    IIf([Forms]![Subcode Analysis]![SelectChk]=Yes,Yes,"")

    Its giving me this error: "This expression is typed incorrectly, or it is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables"

    I'm assuming the problem is with the "" part of my code. Is there a command that would tells it to include both checked and unchecked boxes?



    Thanks,
    Patrick

  2. #2
    pmatush is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    11
    Solve my own problem. Added a "Like" in front and it works.

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

Similar Threads

  1. Include Results with Null or Zero
    By emarkman10 in forum Queries
    Replies: 2
    Last Post: 08-07-2012, 06:14 AM
  2. Include ROW Count in Query???
    By taimysho0 in forum Queries
    Replies: 21
    Last Post: 05-25-2012, 05:29 PM
  3. Include zero values in below query!
    By daffykyle in forum Access
    Replies: 3
    Last Post: 11-30-2011, 08:56 AM
  4. Include expressions in table
    By siedne in forum Database Design
    Replies: 2
    Last Post: 10-11-2011, 04:34 PM
  5. include zero data where no record
    By Sandy Gomez in forum Access
    Replies: 4
    Last Post: 09-15-2010, 06:23 AM

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