Results 1 to 3 of 3
  1. #1
    wojosh6 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    8

    Enter Parameter Value Error

    I am getting an Enter Parameter Value error for both "CURR_FV" and "HC_ADD_ON" on the below query. I used the builder to create this query & it was working until I updated the query name (stupid me). Please help!

    SELECT [d ML_CALC].[POS-COUNTER-PARTY],
    [d ML_CALC].[POS-SEC-IDENTIFIER],
    [d ML_CALC].[POS-MV-IN-USDE],
    [d ML_CALC].[MaxOfBAL-OPT-REQ-AMT],
    [d ML_CALC]![MaxOfBAL-OPT-REQ-AMT]/[c ML_Data_Query]![Sum Of POS-MV-IN-USDE] AS OPT_PCT,
    [POS-MV-IN-USDE]*(1-[OPT_PCT]) AS CURR_FV,
    IIf([POS-HELD-CURRENCY]="USD",0,IIf([POS-MV-IN-USDE]>=0,0.08,0.056569)) AS FX_HC,
    IIf([POS-MV-IN-USDE]>=0,[10D HAIRCUT],[5D Haircut]) AS MARK_VOL_HC,


    [CURR_FV]*([FX_HC]+[MARK_VOL_HC]) AS HC_ADD_ON,
    IIf([CURR_FV]>=0,([CURR_FV]-[HC_ADD_ON]),([CURR_FV]+[HC_ADD_ON])) AS ADJ_MV


    FROM [d ML_CALC] INNER JOIN [c ML_Data_Query] ON [d ML_CALC].[POS-COUNTER-PARTY] = [c ML_Data_Query].CounterParty


    WHERE (((IIf([CURR_FV]>=0,([CURR_FV]-[HC_ADD_ON]),([CURR_FV]+[HC_ADD_ON])))<>0));

  2. #2
    wojosh6 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    8
    I'm an idiot. It was the last Criteria I added... the "<>0" thing. I removed that and all is well.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Glad you got it working. Due to the order in which clauses are evaluated, you can't use alias names in the criteria. You can repeat the calculations, though in this case that might get unwieldy. Another alternative is basing a second query on this one and putting the criteria there.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Report 'Enter Parameter Value' Error
    By ndehhh in forum Programming
    Replies: 6
    Last Post: 10-18-2015, 05:18 PM
  2. Replies: 3
    Last Post: 10-23-2014, 04:22 PM
  3. Enter Parameter Value error
    By bronson_mech in forum Queries
    Replies: 9
    Last Post: 11-30-2013, 05:00 PM
  4. Enter Parameter Value Error in Macro
    By kasimagj in forum Programming
    Replies: 3
    Last Post: 09-19-2011, 03:53 PM
  5. Replies: 2
    Last Post: 04-18-2011, 06:12 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