Results 1 to 3 of 3

Thread: Update query is not working - stumped

  1. #1
    New Member
    Join Date
    Jun 2015
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Update query is not working - stumped

    I have a table called Score which has records of individuals scores for a certain requirement presented by a vendor. The list of requirements is in another Table called Requirements. In the Score table we have entered a Requirement ID that corresponds to the requirement in the Requirements table.

    Both tables have the Requirement ID which is what I am using to select the correct record.

    I am running this update query but nothing is updating in the Score.Requirement field. What am I doing wrong?

    UPDATE ScoreINNER JOIN Requirements ON Score.[Requirement ID] = Requirements.[Requirement ID]
    SET Score.Requirement = [Requirements]![Requirement];

  2. #2
    MrExcel MVP
    Moderator
    xenou's Avatar
    Join Date
    Mar 2007
    Location
    Clev. OH, USA
    Posts
    16,341
    Post Thanks / Like
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Update query is not working - stumped

    Normally the thing to do is inspect the results with select and see what you are getting on the joins:

    select *
    FROM
    Score INNER JOIN Requirements
    ON Score.[Requirement ID] = Requirements.[Requirement ID] ;
    Last edited by xenou; May 17th, 2019 at 10:21 AM.

    Using: Office 2010/Win7 (work) Office 2010/Win7 (home)

    You are rich in proportion to the number of things you can let alone.
    -- Henry David Thoreau

  3. #3
    New Member
    Join Date
    Jun 2015
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Update query is not working - stumped

    Thank you! I realized after looking at all the columns my import from Excel for the Requirements table didn't work correctly. I fixed that problem and all is well.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •