Results 1 to 3 of 3
  1. #1
    5 Star Lounger Lou Sander's Avatar
    Join Date
    Jun 2002
    Location
    Pittsburgh, PA
    Posts
    855
    Thanks
    140
    Thanked 10 Times in 9 Posts

    Another Update Query (2003)

    tblAllLocated has a new text field called Career, which is blank in all the records in the table. It also has a key field called Handle, and a bunch of other fields. There are 1300 records in the table.

    tblCareers has a field called Handles and a text field called Career. There are 400 records in the table. Each record has a Handle that matches one of the Handles in tblAllLocated. There are no duplicate Handles in either table.

    Where tblCareers has a Handle that matches a Handle in tblAllLocated, I want to put the contents of the Career field in tblCareers into the Career field in tblAllLocated.

    I've got a start on it, but I don't have the skill to make it work. I've ordered a book about doing queries, but it isn't here yet. HELP!
    Lou Sander
    Pittsburgh, Pennsylvania
    USA

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Another Update Query (2003)

    Create a query, add both tables.
    Join the tables on Handle, i.e. drag a line from Handle in one table to Handle in the other table.
    Add the Career field from tblAllLocated to the query grid.
    Select Query | Update Query.
    Enter tblCareers.Career in the Update to line.
    Select Query | Run.

  3. #3
    5 Star Lounger Lou Sander's Avatar
    Join Date
    Jun 2002
    Location
    Pittsburgh, PA
    Posts
    855
    Thanks
    140
    Thanked 10 Times in 9 Posts

    Re: Another Update Query (2003)

    Worked! Thanks.

    Both tables also have a numerical ID field (sorry I didn't mention it). Initally, Access had joined these two fields and the query didn't update any records. I deleted the line joining the IDs, and it worked fine.
    Lou Sander
    Pittsburgh, Pennsylvania
    USA

Posting Permissions

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