Results 1 to 3 of 3
  1. #1
    naragam is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2022
    Posts
    1

    Simple way to add missing values using a separate excel worksheet?


    Hi all,

    I'm a newbie to this forum and hope someone can direct me to add a bunch of missing values from a field of an existing ACCESS DB using a separate Excel spreadsheet that has the required values for rows identified by an index variable. I thought I could do a simple merge but I'm not sure I can find a merge function. Any help?

    Best, Nash

  2. #2
    xps35's Avatar
    xps35 is online now Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    300
    There is no merge function in Access. You have to build your own.
    A way to do this is to link the Excel worksheet to Access. Create an update query joining the linked worksheet (which will act like a table) and your Access table on the "index value". Update missing Access fields with the corresponding Excel values.
    This is the best I can do given the limited info provider.
    Groeten,

    Peter

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,569
    You would use an update query.
    Link to the excel sheet and the create a select query first to verify the data, then change it to an update query.

    Make a backup of the table first in case it goes wrong.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 8
    Last Post: 01-15-2021, 04:37 PM
  2. Replies: 1
    Last Post: 01-23-2020, 02:33 PM
  3. Replies: 4
    Last Post: 05-22-2019, 02:09 PM
  4. Get last row number in an Excel worksheet
    By GraeagleBill in forum Programming
    Replies: 1
    Last Post: 01-27-2018, 05:07 PM
  5. Replies: 43
    Last Post: 03-10-2015, 09:35 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