Results 1 to 2 of 2
  1. #1
    pjd71's Avatar
    pjd71 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Apr 2013
    Location
    Sunset Beach, NC
    Posts
    15

    Parameter Value Issue from Search ComboBox


    I have searched and searched for a solution to my problem of opening a Query without having the form open first. The "Enter Parameter Value" started when I created a search box that searches from a Query. When adding the "Like" expression with Wildcard in the record source in the form FCP Requests, I get the Parameter Value when the form is not open and opening FCP Request Query.

    I must not be getting the hang of this and was previously guided to add a "Where" expression. I don't have a clue on how to write it?

    Help with this would be greatly appreciated to close out this project. DB is uploaded to view.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    The query already has a 'Where' expression - it is the criteria referencing the combobox. Open the query in SQL View and you will see the various parts of the query in SQL statement.

    The query has a parameter that references a control on form. If the form is not open Access can't find the referenced item and will demand you provide a value. That's the way dynamic parameter works. If you want to open query without criteria input then can't have a dynamic parameter. There are other ways to navigate records on form, none of which rely on a dynamic parameter in query. I don't use dynamic parameters in queries. Options:

    1. utilize the intrinsic Access filter/sort tools

    2. code to filter the form RecordSource by setting Filter and FilterOn properties

    3. moving to record using RecordsetClone and bookmarks

    4. setting RecordSource property and requerying the form
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 09-12-2012, 09:20 AM
  2. Query can't pull parameter from combobox
    By testsubject in forum Queries
    Replies: 3
    Last Post: 03-08-2011, 11:26 AM
  3. Parameter Query with Combobox?
    By Krs13 in forum Forms
    Replies: 3
    Last Post: 12-21-2010, 06:15 AM
  4. Combobox issue
    By maluna in forum Access
    Replies: 8
    Last Post: 09-08-2010, 01:01 AM
  5. Form/Combo box parameter issue.
    By Bmo in forum Forms
    Replies: 2
    Last Post: 05-06-2010, 03:41 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