Results 1 to 2 of 2
  1. #1
    Cmitchell is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    3

    Importing weekley exces spreadsheets into Access and have it update changed fields


    I have a spreadsheet that i want to import into access. I can import the first weeks just fine. But in the Acess I have added fields that will not be availalbe in the excel spreadsheet that I import. I don't want to import duplicates but - let's say for project no. 123456 it's status is planning for the first week. Then the next week when I go to import the spreadsheet the status has changed to CLOSED. Then I want the database table to be updated with CLOSED for that project no. I can't seem to get it to import and update just certian fields. I also don't know how to write code to do this. Any help would really be appreciated. Thank you.

  2. #2
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    1. Import your table.
    2. Design a query which matches/links the identifying field (or name match or whatever field) to your main table.
    3. Change this to update whatever field you need to update.
    4. Design an 'Unmatched query' on your import table against the 'matching' query.
    5. Change the Unmatched query to an append query to append data to your main table.
    6. Then use these queries to run in your code.

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

Similar Threads

  1. Max out after importing only 188 fields
    By weston in forum Import/Export Data
    Replies: 2
    Last Post: 03-06-2011, 12:07 AM
  2. Identifying Changed Fields in Two Tables
    By novice in forum Queries
    Replies: 1
    Last Post: 12-16-2010, 05:43 AM
  3. Replies: 1
    Last Post: 06-16-2010, 11:54 PM
  4. Replies: 5
    Last Post: 01-05-2010, 10:22 PM
  5. Replies: 7
    Last Post: 05-29-2009, 04:27 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