Results 1 to 3 of 3

Need To Export Excel Data To Access Database Daily

Threaded View

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    Undisclosed Bunker
    MS-Off Ver
    Excel 2003
    Posts
    1

    Need To Export Excel Data To Access Database Daily

    I am VERY new to Access, and have a spreadsheet that is generated every day that I need to selectively export data from to an Access database. My staff creates a new spreadsheet/workbook every day (which are named "072614" for today, "072714" for tomorrow, etc) and I download these from the office computer every night. On each row of the spreadsheet, a customer record is created, and some customers end up having a balance due which I need to create a database for to keep track of. Additionally, there are two (actually three, but on the sample sheet that I am sharing, I only entered two) different types of balance due that I have to keep separate so that my staff can then work with it daily in a separate database and update accordingly as the customer makes payments. I would like to add each day's balance dues to one continuously growing database. If a customer row has an entry in either one of the "Balance Due" columns, then a record will be created in Access, otherwise the row will be skipped and no customer record will be created. Also, eventually I would like it to search for an existing customer record for the same name and birthdate (this sample sheet doesn't have birthdates for any of the 'customers,' but on the actual sheets that we create daily, every customer's birthdate is entered) and append that customer's existing Access record rather than creating a new one.

    What would be the best and easiest way to do this? I have tried some tutorials on how to export data to Access, but none of them really fit what I need to do. Plus, as I said, I am very new to Access as the last 20 years I have worked almost exclusively with Excel. The spreadsheets contain a lot of VBA code to expand column widths when a cell is selected for my staff to read codes and long descriptions in a drop down list, so I don't want to 'break' those when scraping data to the database.

    I tried importing an Excel spreadsheet, but when I do so (perhaps because the spreadsheets are worked upon by my staff with Excel 2002 -- because they prefer the older version and they are reluctant to learn the ribbon -- and the spreadsheets are saved in an .XLS format(?). When I used the "Ribbon --> External Data --> Import & Link --> [from] Excel," I always get an error ("The wizard is unable to access information in the file. Please check that the file exists and is in the correct format"). Also, I would like to automate this process as much as possible, as it will have to be done every day. My actual Excel spreadsheet (multiple pages .. probably about 40 worksheets, but the first worksheet is the one that I will be scraping the data from) is loaded with VBA that I created, so I am familiar with VBA programming, but I am by no means an expert or even an advanced VBA programmer.

    Attached is a sample of the main page of the spreadsheet, the best I could figure out how to paste an existing spreadsheet:

    Working Daysheet-3.xls


    Balance Due Balance Due
    Bill # Last Name First Name MI Birthday Proc Code Proc Code Proc Code Proc Code Diagnosis Diagnosis Charge Spcl Charge Type # 1 Type # 2


    1 Smith Bob 50501 50501 360.08 360.04 $200.00 - 120 20
    2 Smith Mary 50503 360.01 $20.00 -
    3 Jones Jim 50506 50505 360.03 $30.00 - 10
    4 Marks Cindy 50508 360.05 $20.00 - 10
    5 Bellini Martin 50501 50504 360.07 $100.00 -
    6 Grant Frances 50503 360.02 $20.00 -
    7 $- -
    8 $- -
    9 $- -
    10 $- -
    Last edited by NFLnut; 07-26-2014 at 12:38 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 07-05-2013, 09:37 AM
  2. Export Email Info to Access Database
    By pr4t3ek in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2009, 07:49 AM
  3. Export data from Excel to Access Database
    By drpkrupa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-06-2008, 05:52 PM
  4. [SOLVED] Export data into Access Database
    By Noemi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2006, 03:25 AM
  5. [SOLVED] Macro to Export Selected fields to an Existing Access Database
    By ernie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2006, 12:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1