Results 1 to 3 of 3
  1. #1
    Jessica240 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    95

    Update Name Change Across All Access Tables

    Hello,

    My database contains multiple tables that contain a field for employee name. One of our employees' changed their name so now I need to change the name from "Bob Smith" to "Robert Smith" in all tables.

    What is the most efficient method of doing this? I know how to run update queries, but is there a way to tell Access to simply search for "Bob Smith" in all fields of all tables and change it to "Robert Smith?"



    I'm imagining something similar to Microsoft Word's Find and Replace but for a database.


    Thanks in advance,
    Jessica

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Why are you storing the name instead of the foreign key to your person table? if you did it this way (the whole point of relational databases) the name would be 'fixed' in all tables.

    i.e.
    Code:
    tblEmployee
    E_ID  E_LastName  E_Firstname
    1     Smith       John
    2     Jane        Doe
    
    tblEmployeeTime
    ET_ID  E_ID  ET_Date  ET_Hours
    1      1     1/1/2018 6.5
    2      1     1/2/2018 8
    I would attempt to update your table structure to fix the employee reference rather than trying to update a text field.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    the name should be stored in only 1 table.
    all others should have keys refering to that table to read the 1 name.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-13-2017, 06:19 AM
  2. Replies: 1
    Last Post: 06-25-2016, 02:00 PM
  3. Replies: 1
    Last Post: 08-09-2012, 03:51 PM
  4. Replies: 14
    Last Post: 08-04-2010, 07:34 AM
  5. Update / delete and recreate access tables
    By metro17 in forum Access
    Replies: 4
    Last Post: 09-23-2009, 04:45 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