Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2021
    Posts
    2

    How to edit multiple records

    Hi everyone,

    I am extremely new to access, but I want to take my companies job management to another level and take them out of Excel and into Access.



    I have a bunch of records or entries I have import them into access just fine. My problem is this, the data entry in the excel spreadsheet was all over the place. So for example in the location field I get "St. Michael" "Saint Michael" "St Michael" and sometimes just "Michael".

    So I created a new column to replace this field with with a combo box, that way when entering new jobs into the database they just pick from a list and it's consistent. So I have to manually populate the column with the values from the previous column but I am trying to find a way to edit multiple combo boxes at once.

    So for example I could go to the old location column and filter by all the different versions of "Michael" and then update the new column of all the filtered records by selecting the "St. Michael" option in the combo box. Right now the only way I can work out how to do it is to manually click each entry and select the location but I feel there must be and easier way to do it as I have 1000's of records.

    Thanks in advance for your help.

  2. #2
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,651
    Do you have a table of valid locations? How many are there?

    If you know how many variants there are you can do update queries along the lines of
    Update someTable set LocationField = "Saint Michael" Where LocationField in("St.Micheal","St Micheal","Michael", etc)
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    this is the bane of databases, addresses and names.
    I would add a MARK field (yes/no)
    run an update query to the mark yes all records LIKE *MICHAEL*
    then review each to see if they need changed, if not remove the mark.

    then run an update query to set the new name ST. MICHAEL to all MARK =TRUE.

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Or build a lookup table with two fields: ExistingLocation, UpdatedLocation. Now populate it (you can use an append query to add all the existing locations from your current table using SELECT DISTINCT to avoid duplicates), add the proper UpdatedLocation then create your update query.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  5. #5
    Join Date
    Apr 2021
    Posts
    2
    Thanks everyone for you help, your suggests helped me to get my brain to think in Access and work it out.

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

Similar Threads

  1. How to Add/Edit records remotely
    By Athar Khan in forum Access
    Replies: 17
    Last Post: 10-02-2017, 04:03 PM
  2. Edit records from listbox
    By joecamel9166 in forum Access
    Replies: 4
    Last Post: 04-15-2016, 06:03 AM
  3. Using VBA to look for and edit certain records
    By element32d in forum Programming
    Replies: 13
    Last Post: 11-16-2012, 07:01 PM
  4. Replies: 23
    Last Post: 12-06-2011, 09:18 AM
  5. for next with edit records
    By JJCHCK in forum Programming
    Replies: 15
    Last Post: 10-27-2011, 10:38 AM

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