Results 1 to 10 of 10
  1. #1
    ghodgkins is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    9

    Enter Parameter Value Pop-Up

    I have a query that pulls a value from a table, then I created a new field in the querie to run an equation. When I go to run the query, I get the pop-up that says "Enter Parameter Value" with the name of the field that's in my equation. If I leave it blank, it just hit enter, it runs no problem. However, it is a bit annoying and I was wondering if there is a way to prevent that pop-up from coming up every time?

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    There is something (variable, field) in your calculation that access cannot find - therefore access asks for a value. Check the name of the field and fix it (I would check the spelling first).

    If I leave it blank, it just hit enter, it runs no problem
    But does it return the correct result?

  3. #3
    ghodgkins is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    9
    It is giving me the correct answer. I also double checked the names, and they are correct. I even made sure I was pulling from the "list" that pops up when you start typing.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    get the pop-up that says "Enter Parameter Value" with the name of the field that's in my equation
    The fact that you get the pop up and a field name, means that Access can't find that field.
    Without seeing the dB, that is about all I can help you with.


    Out of curoisity, if you enter 1000 in the parameter request, do you still get the correct answer?

  5. #5
    ghodgkins is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    9
    Yes, it seems as though no matter what I put in there, number wise, it still comes out the same. If I put in an alpha charachter, everything says "#NAME?".

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    If you can put any number in and the result doesn't change, why is that field name in the calculation?

    Review your calculation........

  7. #7
    ghodgkins is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    9
    Here's What I have:

    FieldB: Avg([Table1]![FieldA])

    FieldC: [Table2].[FieldC]

    Result: Round(([FieldB]/5)*[FieldC],2)

    If I take out the query field for the "Result" equation, the query will give me the other two fields. But when I enter the "Result" equation into the the third query field, that's when I get the pop-up, and it asks about "FieldB".

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Post the entire SQL statement.

    I don't think can reference an aggregate field like that in the same query.

    Why don't you build a report and do calcs there?
    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.

  9. #9
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Try changing this
    Code:
    Result: Round(([FieldB]/5)*[FieldC],2)
    to this
    Code:
    Result: Round((Avg([Table1]![FieldA])/5)*[FieldC],2)

  10. #10
    ghodgkins is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    9
    It works!! Thank you so much!!

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

Similar Threads

  1. Enter Parameter Value
    By Brownie772000 in forum Access
    Replies: 17
    Last Post: 09-12-2014, 12:13 PM
  2. Enter Parameter Value
    By The Professor in forum Programming
    Replies: 3
    Last Post: 07-29-2014, 12:41 PM
  3. Replies: 13
    Last Post: 01-10-2012, 09:56 AM
  4. Enter Parameter Value
    By kwooten in forum Queries
    Replies: 13
    Last Post: 08-11-2011, 02:35 PM
  5. Enter Parameter Value
    By T001 in forum Access
    Replies: 1
    Last Post: 08-11-2010, 05:43 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