Results 1 to 6 of 6
  1. #1
    superfly5203 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    4

    Question How to I update access with an excel sheet?

    Hello,



    I have searched in the forums and couldn't find anything quite like what I trying to do, but I am sure I just missed it. Anyways, I have a main data base that that I keep contract numbers and information in, and I have been going through and destroying physical files that are old. I made a list of physical files in excel with their contract numbers and a few other fields that match with the database. I was wondering how do I update the database with the new data from the spreadsheet? I tried an import and it made copies, which I don't want. There has to be an easier way then going through the database one by one and copying the data from excel into access, I have almost 500 contracts in the excel listing.

    Thanks for any help!

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    So, are you trying to add new records, or update existing records or both?

    If you want to update existing records, either link your Excel data into Access, or import it into a "temporary" table. They use an Update Table to update the appropriate data from your temp table to your final table.

    If importing new records, first follow the same step of linking/importing the Excel data, then do an unmatched query between this temp table and your final table to find your new records. You can then change that to an Append Query to add the new records to your final table.

    You may want to read up on Action queries in Access's built-in help files, or search for tutorials on the web if you are unfamiliar with them (Update and Append queries are "Action" queries).

  3. #3
    superfly5203 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    4
    I am trying to update existing records. I will try what you suggested. Thanks for the input and i will let you know if it works!

  4. #4
    superfly5203 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    4
    I get to the part where I set up the update query and I changed the criteria to [Sheet1].[Contractor Name] and a two other fields, but when I hit run nothing happens. Down in the bottom left of the screen it says "This action or event has been blocked by disable mode". I ran the query before adding in those criteria and it grabbed only the contract numbers from database that were on the excel sheet, so I am doing something right i guess. What am I doing wrong to get the disable mode message?

  5. #5
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904

  6. #6
    superfly5203 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    4
    Thanks! that worked and It updated my records! Saved me hours of time! Thanks a bunch!

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

Similar Threads

  1. Replies: 26
    Last Post: 01-08-2013, 04:55 PM
  2. Multiple users to access excel sheet
    By nccool2104 in forum Access
    Replies: 0
    Last Post: 06-22-2012, 01:13 PM
  3. Replies: 6
    Last Post: 10-17-2011, 11:16 PM
  4. Replies: 1
    Last Post: 03-02-2011, 03:08 PM
  5. Importing full excel sheet to access
    By karakal in forum Import/Export Data
    Replies: 0
    Last Post: 03-22-2010, 03:48 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