Results 1 to 3 of 3
  1. #1
    lewismk is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    2

    Query Question (new access user)


    I am brand new to access and trying to run a query. I was able to setup a form with a yes/no question box. Once I click this box, I would like the form to tell a query to run the "yes" value. I am struggling how to get the query to read the yes check box. I have the criteria set as [Forms]![form name]![field name]. Can someone please help?

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Code:
    Forms]![form name]![field name]
    is the correct reference syntax so your problem must be with the statement.

  3. #3
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    not sure how you've set up the form. an unbound control? a check box with a check in it = -1

    if you manually put -1 into the query would it work? probably the query is literally looking for 'yes' ....not clear from your post as it depends on what the table field is set up for and the form control - - but to make it work these two must match.

    Hope this helps you get going in the right direction.

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

Similar Threads

  1. New user with question
    By gabety in forum Access
    Replies: 9
    Last Post: 12-15-2010, 02:23 PM
  2. New user question
    By ppiper in forum Forms
    Replies: 1
    Last Post: 12-01-2010, 12:11 PM
  3. New user Question
    By ppiper in forum Programming
    Replies: 1
    Last Post: 12-01-2010, 11:53 AM
  4. New User with DAP Question
    By Tdo79 in forum Access
    Replies: 0
    Last Post: 11-14-2010, 07:37 PM
  5. Replies: 5
    Last Post: 08-05-2009, 12:13 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