Results 1 to 4 of 4
  1. #1
    PeteD is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    2

    Resolving Enter Parameter Value message

    I am relatively inexperienced working with Access and am putting together a budget database for work. I built a query to display the amount of each line in the annual budget, the sum of the expenses against them, and added a calculated field to display the remaining balance (Budget - Total of expenses). The expression I used in the calculated field is: PO/Contract Balance: [Contract/PO Amount]-[SumOfInvoice Amount] where "Invoice Amount" is a field name in my expenses table. The part that has me confused is that this ultimately produces the correct result (below) however SumOfInvoice Amount is being treated as a parameter which is causing issues for me when producing reports in that the SumOfInvoice Amount column is blank even though PO/Contract Balance continues to calculate and display correctly. Been banging my head on my desk for a day now so any help is greatly appreciated. Thank you in advance!



    Vendor Name Contract/PO # Contract/PO Amount SumOfInvoice Amount PO/Contract Balance
    Vendor1 PO1 $50,000.00 $8,000.00 $42,000.00
    Vendor2 PO2 $25,000.00 $3,500.00 $21,500.00
    Vendor5 Contract5 $10,000.00 $250.00 $9,750.00
    Vendor6 Contract6 $5,000.00 $1,200.00 $3,800.00

  2. #2
    greatwhite is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2019
    Location
    Ottawa, ON
    Posts
    56
    Although I don't see a spelling mistake in you comment, usually when it is treated as a parameter it's because it doesn't recognize the variable so double and triple check your spelling of the field.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    if [SumOfInvoice Amount] is a hard field, and NOT calculated, then the formula will work.
    if you are trying to do a calculation on a SUM() then this may fail.
    You can use the sum query in Q1, then in Q2 ,pull in Q1 and do the next calc :[Contract/PO Amount]-[SumOfInvoice Amount]

    you will also get Param msg if a field is misspelled or non-existent.

  4. #4
    PeteD is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    2
    Quote Originally Posted by ranman256 View Post
    if [SumOfInvoice Amount] is a hard field, and NOT calculated, then the formula will work.
    if you are trying to do a calculation on a SUM() then this may fail.
    You can use the sum query in Q1, then in Q2 ,pull in Q1 and do the next calc :[Contract/PO Amount]-[SumOfInvoice Amount]

    you will also get Param msg if a field is misspelled or non-existent.
    Thank you! SumOfInvoice Amount was a SUM() not a hard field. Doing my SUM() in the first query and then bringing that into a second query works. Really appreciate your help.

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

Similar Threads

  1. Replies: 5
    Last Post: 06-24-2015, 11:46 AM
  2. Replies: 13
    Last Post: 01-10-2012, 09:56 AM
  3. Replies: 5
    Last Post: 07-04-2011, 12:53 PM
  4. enter parameter value
    By alliandrina in forum Access
    Replies: 1
    Last Post: 06-05-2011, 01:02 AM
  5. Enter Parameter Value
    By T001 in forum Access
    Replies: 1
    Last Post: 08-11-2010, 05:43 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