Results 1 to 5 of 5
  1. #1
    gunterbrink is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2016
    Posts
    16

    Importing complex data from excel

    Good evening all. My question is, and I've been scouring the internet to find a solution but have been unsuccessful. Basically here is what I am needing:



    I have an excel file that my employees fill out. We track all of the employees on a job, their hours out on the job, what equipment is on the job. Different crews perform different jobs. What I'm trying to do is import the excel file and have the data split between different tables ex: Employee table, equipment table, damaged equipment table, cost analysis table.

    Is this possible, or am I going about this the wrong way. We may 20-30 jobs a day going on, so i am trying to automate this process. If is very time consuming trying to perform costs analysis and inventory control/ reorder manually. It would literally take me all day. Any suggestions would be appreciated.

    Thanks

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    in principle, either link to the excel sheet or import to a temporary table. Then write various append queries to append data to the different tables.

    If you link create an import folder to place the many excel files, you can create a vba routine to import each file and then move to an archive folder.

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Yes, it is possible.

    There are (at least) a couple of ways of doing this.
    1) Link to the Excel workbook, then use queries or code to move the data
    2) use automation to open, import the data & close the Excel workbook
    3) export the Excel data to a CSV file and import

    We used to do this, until the data started coming to us in CSV format (text file).

    Ken Snell has examples of automation Importing/Exporting data to and from Access/Excel.
    http://www.accessmvp.com/kdsnell/EXCEL_MainPage.htm

    Under the IMPORT option, I like the header: Read Data from EXCEL File via Query (SQL Statement)
    http://www.accessmvp.com/kdsnell/EXC...ort.htm#ImpSQL
    once you have the data in a query, you can use code to process the data.

    But see all of the examples in the IMPORT page........

    You might (probably will) have a lot of code ... but it is doable.

  4. #4
    gunterbrink is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2016
    Posts
    16
    This is just a question, but can this forum be used to access free lance db programmers? This might be more than I can handle in the amount of time that it would take. If this is against the forum rules for even asking, I apologize in advance.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    not against the rules so far as I know and there are freelance developers on this site (I'm one) and some perhaps will do it for free (but not me). You can PM me with what you are looking for if you like. But generally speaking, if you take up one of the suggestions provided by ssanfu and ask for help on specific issues we're happy to help.

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

Similar Threads

  1. Importing data and complex data structures
    By gilbertvb3 in forum Database Design
    Replies: 2
    Last Post: 04-28-2015, 03:21 PM
  2. Formstack & Importing Data via excel, best way to collect data?
    By Yogibear in forum Import/Export Data
    Replies: 2
    Last Post: 02-10-2014, 07:05 PM
  3. Importing Data from Excel
    By ineedaccesshelp in forum Import/Export Data
    Replies: 2
    Last Post: 11-28-2012, 11:02 PM
  4. Importing data from Excel
    By dsaxena15 in forum Access
    Replies: 1
    Last Post: 10-03-2012, 10:56 AM
  5. Replies: 6
    Last Post: 07-27-2012, 12:44 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