Results 1 to 2 of 2
  1. #1
    chrisfl is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2013
    Location
    Minnesota
    Posts
    13

    Parameter query problem

    I am trying to make a parameter query using two linked tables so my colleagues can get information without having to know a lot about query criteria. For example, one of the common criteria we search by is County. When I add [County] to the criteria of the County field and run the query, the popup box doesn't appear as expected and it just opens up with the big unfiltered list. It's not a big deal because they're all familiar with data filtering, but it's strange that the thing doesn't work at all. Anyone see this before?

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You have a field named "County" and you set the criteria to "County"?
    To answer your question, don't use the name of an actual field. Instead of [County], use something like [MyCounty], [xCounty] or [EnterCounty].




    But I would never let users run a query and be able to edit/change the data in the query. That is what forms are for.

    I would have an unbound combo box in the header of a form with the row source set to
    Code:
    "SELECT DISTINCT County FROM TableWithCountyField"
    In the after update event of the combo box I would have "Me.Requery"
    The form recordsource would be the query you now have. The criteria for the "County" field would be the combo box name instead of "[County]".

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

Similar Threads

  1. enter parameter value problem..
    By marklove in forum Access
    Replies: 4
    Last Post: 04-04-2013, 02:57 AM
  2. Query parameter problem
    By Rzadziu in forum Queries
    Replies: 3
    Last Post: 03-30-2012, 01:57 PM
  3. Parameter Report Problem
    By keatsy_040489 in forum Reports
    Replies: 3
    Last Post: 02-04-2012, 08:00 AM
  4. Enter Parameter Value Problem
    By batowl in forum Queries
    Replies: 4
    Last Post: 12-22-2010, 01:37 PM
  5. Custom Query Parameter Prompts-- Problem
    By tylerthompson in forum Forms
    Replies: 11
    Last Post: 07-07-2009, 10:28 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