Results 1 to 6 of 6
  1. #1
    TUPJK is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    17

    Combo Box for Query CRITERIA?

    I am constructing a query for a data list



    What I want to know is is there a way I can insert a combo box sort of drop down menu list in the "CRITERIA" field of a query?

    It would make it easier if I could select from a list instead of typing it in everytime I want to run the query

    It would seem very bizarre if there isn't a way to do this, it seems very intuitive

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    No, you can't do that in a query. But you CAN use a FORM for selecting criteria and then you set the criteria in the query to use the control in the form:

    [Forms]![FormNameHere]![ControlNameHere]

  3. #3
    TUPJK is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    17
    Quote Originally Posted by boblarson View Post
    No, you can't do that in a query. But you CAN use a FORM for selecting criteria and then you set the criteria in the query to use the control in the form:

    [Forms]![FormNameHere]![ControlNameHere]
    That's what I was fearing

    what would be an example of a "control"? I'm confused about [controlnamehere]

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by TUPJK View Post
    That's what I was fearing

    what would be an example of a "control"? I'm confused about [controlnamehere]
    That would be your combo box name.

    Controls are:

    Text boxes
    Labels
    Combo boxes
    Listboxes
    Option Groups
    Checkboxes
    Radio Buttons
    Toggle buttons
    Lines
    Rectangles
    ... and more

    They are basically anything that is on a form or report.

  5. #5
    TUPJK is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    17
    Quote Originally Posted by boblarson View Post
    That would be your combo box name.

    Controls are:

    Text boxes
    Labels
    Combo boxes
    Listboxes
    Option Groups
    Checkboxes
    Radio Buttons
    Toggle buttons
    Lines
    Rectangles
    ... and more

    They are basically anything that is on a form or report.
    Thanks Bob!

  6. #6
    BlueIshDan is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    8
    This should generate a form for you to go by
    https://www.accessforums.net/code-re...orm-44282.html

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

Similar Threads

  1. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  2. query criteria
    By combine21 in forum Queries
    Replies: 1
    Last Post: 11-08-2010, 12:21 PM
  3. Replies: 6
    Last Post: 06-29-2010, 09:56 PM
  4. Replies: 6
    Last Post: 06-03-2009, 02:01 PM
  5. Query Criteria
    By jena in forum Queries
    Replies: 1
    Last Post: 04-29-2008, 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