Results 1 to 5 of 5
  1. #1
    louise is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    112

    ComboBox on Form asks again for the form's parameter

    Hello,
    I have a form, based on an underlying query that prompts for two parameters ([Select A Semester] and [Select A Year].


    Opening the form itself, of course, prompts for the same two fields.

    I have put a combo box on that form, set to "find/display a record on the form." The combobox is based on two fields, an ID and a text field, neither one is one of the parameters. It works ok, but it prompts again for the same two fields.

    Can you give me some direction on how to get the combobox to use the parameters of the form and not prompt again?

    Thanks for any help!

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I am sorry that there is not a simple answer to your question. It sounds as thought the data your query is requesting is already in the DB. If you do not want the query to prompt the user for input, edit the query. Since the data is somewhere in the DB, create the appropriate Join to display the relative data for the user.

    It is easier said than done. But the fundamentals of Relational Data Bases is to have your tables structured in a way that relationships allow the user to query and retrieve relative data.

  3. #3
    louise is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    112
    Hi,
    Thanks for your prompt response!
    Yes, the data is already in the data set. The Combo box (which displays "courses") is intended to simply find a course record on the form that fits the parameter criteria of the form itself (semester and year). So, data entry is not required at that point.

    I am not sure how to edit the query to solve this.... And, if the combo box is not tied to the underlying query of the form, then it's course record choices will not be limited to the parameters of the form. (I tried this, and got all possible courses not just the ones for the relevant semester and year.)

    Can you (or someone else) give me some further pointers?
    Thanks.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Perhaps you could post a copy of your db
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Your Query object has some SQL that requires parameters. Access has an option to request user input for Dynamic Parameters. If you open your query object using the Query Editor/Builder, you will see the fields available in the bottom of the Query Editor window. In the Criteria row, you will see the syntax that generates the input dialog. Look for the corresponding field name and the literal text "Select A..."

    If you remove this syntax, the request for input will no longer appear. Now you get to create a form to collect the User's input and apply it to a filter or a query object.

    A search form is not a small task. Another approach may be to use the Form's filter property.

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

Similar Threads

  1. Search Form - Dialog box asks for search criteria
    By faythe1215 in forum Queries
    Replies: 3
    Last Post: 02-10-2015, 05:54 PM
  2. Replies: 2
    Last Post: 12-07-2014, 10:03 PM
  3. Replies: 12
    Last Post: 06-25-2013, 12:52 PM
  4. Replies: 1
    Last Post: 02-28-2013, 01:20 PM
  5. Replies: 3
    Last Post: 09-12-2012, 09:20 AM

Tags for this Thread

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