Results 1 to 5 of 5
  1. #1
    batowl is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    86

    Enter Parameter Value Problem

    Hi,
    So I am building a bunch of queries and all of them work just fine, but not without clicking "Ok" on the "Enter Parameter Value" box that comes up each time I try to run the query (and it comes up many, many times for each query).


    Here is an example of the expression in a query that is causing this box to pop up each and every time:
    MA: IIf([Mt Ascutney]="Present",1,0)
    So when I try to run this query that has this expression in it, it asks for me to "Enter Parameter Value" for "MA" (and numerous other fields in this query that are similar).
    I can click "OK" without entering anything in the box for this prompt and the query works just fine, but I cannot hand over this database to the users and ask them to click through these boxes each and every time. Any solutions? Must be something easy...

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    That dialog box pops up when Access cannot find what it's looking for. In your case, it is looking for the value in [Mt Ascutney]. Make sure you spelled it correctly and that all the capitalization and spacing is correct and matches the actual field name. If that doesn't fix it, try doing [Table Name].[Mt Ascutney] instead.

  3. #3
    batowl is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    86
    Yeah, that is what originally thought too, but all the spacing and capitalization are correct and in the end, it is running the query properly by just leaving these "Enter Parameter Value" boxes blank and hitting OK, so it knows where to look and is looking in the right spot.
    [Table Name].[Mt Ascutney] produces the same results.

    It seems to me that it does not like something about the name of the expression: "MA"

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    So leaving the parameter blank and hitting OK produces correct results? That's odd. Not sure why that would happen. In the meantime, you can create that as
    MA: 0
    then run an update query to update MA to 1 where Mt Ascutney = "present"

  5. #5
    batowl is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    86
    Ugh, resolved: the Totals option in the query was activated. Turning that off fixed it my problem. Thanks for your help.

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

Similar Threads

  1. Enter Parameter Value
    By T001 in forum Access
    Replies: 1
    Last Post: 08-11-2010, 05:43 AM
  2. location of "enter parameter value" box
    By dcjohnso11 in forum Programming
    Replies: 1
    Last Post: 06-25-2010, 11:36 AM
  3. Enter Parameter Value
    By gutes2 in forum Forms
    Replies: 3
    Last Post: 03-03-2010, 05:03 PM
  4. Replies: 0
    Last Post: 03-25-2009, 05:26 AM
  5. Enter Parameter Value
    By plesser in forum Access
    Replies: 1
    Last Post: 11-08-2008, 10:27 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