Results 1 to 3 of 3
  1. #1
    MrFurley is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    1

    auto import and update on startup

    Hello,



    i have already planned my database out but i am not familiar with creating it. Basically, I am creating a database that tracks when and where my employees travel so they can get paid. Im having trouble with updating my database on startup. Everytime I open my database I would like it to automatically:

    1. import data from tableA in database_BE (C:/TRAVEL_DATA/database_BE) into a temp_table. (my info is stored in a seperate database for safekeeping) This temp_table contains both the travelID and employeeID fields needed to update from different files.

    2. search for and import multiple xls files from (C:/TRAVEL_DATA/INBOX/*.xls) into the the temp_table if the (travelID and SSN) match, if not then create new records in the table. **I have to match both fields because some travelIDs are blank, but everyone on the list has a SSN.

    3. move each xls file to a history folder (C:/TRAVEL_DATA/HISTORY) until there are none left in the inbox.

    4. add employeeID data to all records that do not already have one... right(LNAME,2)+left(LNAME,2)+right(SSN,4) ...since some employees travel more than once its ok to have multiple employeeIDs on the table.

    5. import information from another xls file (C:/EMPLOYEES/list.xls) into the temp_table for all records that have a matching employeeID. (this is a list of employees by ID with additional database info that is not already on any of the travel_data files.) **If one employee travelled twice then a copy of this information should be reflected for each TravelID in the database.

    6. delete any records from temp_table if the employeeID is not contained in the employee list (C:/EMPLOYEES/list.xls)

    7. At this point i have no problems manipluating the data through switchboards, forms and reports. However,

    8. when i quit i would like it to automatically update tableA in database_BE (C:/TRAVEL_DATA/database_BE) and then delete temp_table in the database.

    does anyone have any suggestions, guidance or pointers they could share with me?? i appreciate any assistance to get me started!

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    setup startup form to perform all these your planned work.
    In Access 2003, the setup is in Tools -> startup, no idea about Access 2007

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    To add to Weekend's suggestion, here's how you do that in ac2007: http://www.btabdevelopment.com/ts/de...aspx?PageId=96

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

Similar Threads

  1. Replies: 3
    Last Post: 05-24-2010, 06:56 AM
  2. Replies: 3
    Last Post: 04-14-2010, 10:07 AM
  3. Auto Update Forms
    By Vikki in forum Forms
    Replies: 1
    Last Post: 02-09-2010, 10:51 AM
  4. auto update of two linked tables
    By colenzo in forum Access
    Replies: 4
    Last Post: 07-20-2009, 09:08 AM
  5. Replies: 1
    Last Post: 03-08-2009, 01:50 PM

Tags for this Thread

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