Results 1 to 3 of 3
  1. #1
    sumera12 is offline Novice
    Windows XP Access 2013
    Join Date
    Nov 2014
    Posts
    2

    Macros to update source data


    Hi,

    I am trying to create a database that will analyse cost of sales for my business. So every month I download an excel file from BEX (Business warehouse), I want to link this file to access. I was wondering is there a VBA code that I can write that would update access database with new data every month?

    Thanks

    Sumera

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    No vba code needed.

    Save the xl file to the same place , same name everytime....xlFile2Import.xls
    Link it into the db as a table.
    build a query to add that data to your access table. qaImportXLdata
    add this query to a macro : mImportXLdata

    so now the steps are:
    1. save xl wb to xlFile2Import
    2. run macro
    3. done.

  3. #3
    sumera12 is offline Novice
    Windows XP Access 2013
    Join Date
    Nov 2014
    Posts
    2
    how do i build a query to add the data to access table?

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

Similar Threads

  1. Looping in data macros???
    By Rafegh in forum Macros
    Replies: 2
    Last Post: 07-31-2014, 07:05 AM
  2. Replies: 7
    Last Post: 08-26-2013, 06:05 AM
  3. Macros, VBA, Autopopulation of Data
    By pdevito3 in forum Access
    Replies: 5
    Last Post: 08-13-2013, 01:39 PM
  4. Replies: 4
    Last Post: 11-21-2012, 03:17 PM
  5. Replies: 30
    Last Post: 06-26-2011, 10:47 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