Results 1 to 4 of 4
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    printing with yes/no criteria

    Hi



    have a table with one colum as a yes/no field.

    I have created a query based on the table which contains the fields I want to print.
    I then used the label wizard to create my labels.

    One of the fields in the table is for who to send xmas cards to and is a yes/no field.

    How do I limit the labels printed to those with a yes in the xmas field

    thanks

    Ian

  2. #2
    Jen0dorf is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Thought I'd solved it

    added the yes no field to the query and then in criteria added ="true"

    However got a data missmatch message
    Ian

  3. #3
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    yes/no fields are actually stored as numbers -1=true and 0=false. They also have some standard formats of Yes/No and True/False which you can use as alternatives

    so when you used ="True" you are comparing a number to a text which is why you are getting the error

    try

    =True

    or

    =Yes

    or

    =-1

  4. #4
    Jen0dorf is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Hi

    many thanks for the quick and accurate answer

    cheers

    Ian

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

Similar Threads

  1. Replies: 2
    Last Post: 04-02-2015, 12:45 PM
  2. Replies: 3
    Last Post: 11-14-2014, 02:51 PM
  3. Replies: 4
    Last Post: 08-30-2014, 10:23 AM
  4. Replies: 5
    Last Post: 08-02-2012, 09:44 AM
  5. Replies: 1
    Last Post: 07-13-2011, 11:00 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