Results 1 to 4 of 4
  1. #1
    kasimagj is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2011
    Posts
    3

    Enter Parameter Value Error in Macro

    Hi! So, i'm really confused. I have a macro that's supposed to perform the following (simple) SQL statement:




    UPDATE dbo_Bid_Rates
    SET dbo_Bid_Rates.RATE_RANK = dbo_bid_Ranks_linked.Rank,
    dbo_Bid_Rates.LC_Carr1 = dbo_bid_Ranks_linked.LC_Carr1,
    dbo_Bid_Rates.LC_Carr2 = dbo_bid_Ranks_linked.LC_Carr2
    WHERE dbo_bid_rates.ID = dbo_Bid_Ranks_linked.ID

    For some reason, I get a popup asking for me to enter the parameter values for each of the dbo_bid_Ranks_linked fields (Rank, LC_Carr1, LC_Carr2, then ID).


    The fields are spelled correctly and it won't perform the macro function.


    WHAT AM I DOING WRONG????? (note: RATE_RANK in RATES table was previously updated, so the macro didn't update it)

    picture here: https://docs.google.com/leaf?id=0B3M...wYTlh&hl=en_US

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Did you use the query designer to help you build and test UPDATE query? When it works properly, put the statement into code.
    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.

  3. #3
    kasimagj is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2011
    Posts
    3
    Thanks for the reply. So I've never made an UPDATE query before and i'm having the same error as before. Can you see if I'm missing something?

    I took a screenshot of the query design and also the SQL code:

    pic: https://docs.google.com/leaf?id=0B3M...mMzYz&hl=en_US

    Really appreciate the help! I've been trying to figure this out for a long time xO

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Since the source data is another table/query, must include it in the query design along with the destination table and join the two on the unique id field.

    Access Help has guildelines.
    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.

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

Similar Threads

  1. Enter Parameter value?
    By hlcarlin in forum Forms
    Replies: 3
    Last Post: 07-06-2011, 08:09 AM
  2. enter parameter value
    By alliandrina in forum Access
    Replies: 1
    Last Post: 06-05-2011, 01:02 AM
  3. Replies: 2
    Last Post: 04-18-2011, 06:12 AM
  4. Enter Parameter Value
    By T001 in forum Access
    Replies: 1
    Last Post: 08-11-2010, 05:43 AM
  5. Enter Parameter Value
    By gutes2 in forum Forms
    Replies: 3
    Last Post: 03-03-2010, 05:03 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