Results 1 to 4 of 4
  1. #1
    cryswater is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2009
    Posts
    2

    Question Using random fields in Excel to populate Access table

    I have a situation where I run a query out of a few tables in Access. This query is sent out and randomly updated by multiple users. There are text fields, date fields and a yes/no field.



    There are other fields of data in the Excel spreadsheet that would not need to be populated into the Access table and are just there for the users' reference.

    The field names in the table and the Excel spreadsheet are identical.

    Here's my dillema... Currently, I am having to manually update each Access record in the table, by filtering on the unique ID and copying the data in Excel and pasting it into the corresponding record field in Access. This is a painful process. I know there has to be a better way to update the Access table, without damaging/overwriting or losing the data that is not being updated.

    Any help would be appreciated. Appologies for the boneheaded question.

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Import the Excel data into a temporary table.

    Write a routine to step through that tables recordset, updating the real table's recordset based upon the appropriate ID.

  3. #3
    MAF4Fam6's Avatar
    MAF4Fam6 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Location
    Fruit Heights, Utah USA
    Posts
    140
    Quote Originally Posted by cryswater View Post
    Currently, I am having to manually update each Access record in the table, by filtering on the unique ID and copying the data in Excel and pasting it into the corresponding record field in Access. This is a painful process. I know there has to be a better way to update the Access table, without damaging/overwriting or losing the data that is not being updated.
    Is there any way your multiple users can supply a spreadsheet with only those records that contain updates? This way you can batch process your records into your Access table.
    Quote Originally Posted by llkhoutx View Post
    Import the Excel data into a temporary table.

    Write a routine to step through that tables recordset, updating the real table's recordset based upon the appropriate ID.
    As llkhoutx mentions...you would need to import the spreadsheet into a temporary table and then run an update query to batch process your updated fields into your main table based on the appropriate ID (Primary Key).

    -RC

  4. #4
    Castillb is offline Novice
    Windows XP Access 2002
    Join Date
    May 2013
    Posts
    11
    Hi Chris,

    I'm trying to do the exact same thing. Did you have any luck?

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

Similar Threads

  1. Export Access Pivot Table to Excel
    By graviz in forum Programming
    Replies: 1
    Last Post: 11-13-2009, 07:30 AM
  2. Replies: 0
    Last Post: 06-05-2009, 10:47 AM
  3. Call Excel Data into Access table
    By jiguvaidya in forum Import/Export Data
    Replies: 0
    Last Post: 09-15-2008, 04:58 AM
  4. Auto populate fields on a form
    By ldarley in forum Forms
    Replies: 0
    Last Post: 08-14-2008, 09:39 AM
  5. link excel form to access table
    By data123 in forum Import/Export Data
    Replies: 6
    Last Post: 06-23-2006, 10:17 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