Results 1 to 4 of 4
  1. #1
    Rubz is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    9

    Question Check Box Values in Queries

    I have a database setup holding various comments about resources along with details of who sent them in, date etc. There are then a number of check boxes to show what resource(s) the comments refer to; book1, book2 etc.



    I'm trying to put a query together to run off a report for whatever criteria the user wants, ie between certain dates, comments on book1. To do this I have created an unbound form [ReportForm] with the same check boxes as the main form and text boxes for start date and end date. In the query under criteria for each field I have added: =[Forms]![ReportForm]![book1] (or the equivalent for each check box). However when running the query it always shows as no records whether the [book1] checkbox on [ReportForm] is ticked or not.

    I've tried this using just the dates (>[Forms]![ReportForm]![Start]) which works fine, and also using a text box in [ReportForm] for [book1] and adding "0" or "-1" which also works fine. This shows that it is picking up the text box data from [ReportForm] OK, but for some reason isn't recognising the True/False data from the check box.

    Any thoughts on why this is happening / what I can do to make it work gratefully received. Thanks.

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    check the criteria that you have put for the Yes/No Fields. by Default CheckBoxes when unbound are named Check0, Check2. Have you typed the right name. Check it

  3. #3
    Rubz is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2010
    Posts
    9
    Doh. Was pretty sure I'd done that and checked it, but checking back again I hadn't. Thanks.

  4. #4
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    if your problem is solved mark the thread solved.

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

Similar Threads

  1. Replies: 3
    Last Post: 04-04-2010, 05:26 PM
  2. Replies: 1
    Last Post: 03-27-2010, 06:13 AM
  3. Check Box Value
    By mulefeathers in forum Programming
    Replies: 4
    Last Post: 10-09-2009, 08:31 PM
  4. Return all values from two queries
    By matteu1 in forum Queries
    Replies: 0
    Last Post: 08-18-2009, 01:02 PM
  5. check boxes
    By chiefmsb in forum Forms
    Replies: 1
    Last Post: 11-14-2006, 02:22 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