Results 1 to 3 of 3
  1. #1
    bondalisha is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2015
    Posts
    1

    Updating records based on another table

    I'm still learning Access and this is probably very basic.... but here's the situation:

    Table1 lists 6,000 organizations [OrgName], their state [State], and their contact information [Phone][Email], plus a yes/no field [Selected]. I need to update the yes/no field of 1,200 specific records to True.

    I have a second table [Table2] that lists the 1,200 specific organizations [OrgName]. Table2 has no other fields.

    Can I update the records in Table1 that match the [OrgName] listed in Table2?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you create a query that uses an inner join of Table1 and Table2 then only those records that match will be included.

  3. #3
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    So like this? Entirely untested.
    Update table1 inner join table2 on table1.orgname = table2.orgname set table1.selected = true

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

Similar Threads

  1. Updating Old Records Based on New Records
    By lzook88 in forum Programming
    Replies: 24
    Last Post: 09-18-2015, 09:17 AM
  2. Replies: 15
    Last Post: 08-07-2015, 10:46 AM
  3. Replies: 1
    Last Post: 06-17-2013, 11:44 AM
  4. Replies: 2
    Last Post: 05-19-2013, 07:22 PM
  5. Replies: 6
    Last Post: 05-10-2012, 08:20 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