Results 1 to 5 of 5
  1. #1
    phildcs is offline Novice
    Windows XP Access 2002
    Join Date
    Jun 2013
    Posts
    3

    Import daily updated excel into Access 2002-2003

    Hello All,

    I am trying to find a way to import an excel file into an access database. My problem is that the file I need is the result of a query that is generated by an oracle product. The name of the excel file changes daily as the query changes daily. I was wondering if there was a way to create a macro that looks for a file in a shared folder that contains "%constanttitle" or some command that only imports the most recent file?

    I have found some coding but nothing that applies specifically.



    Thanks,
    Phil

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,615
    Not a macro but VBA code can examine the names of each file in a folder.

    Google: Access VBA list files in a folder

    http://www.allenbrowne.com/ser-59.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    phildcs is offline Novice
    Windows XP Access 2002
    Join Date
    Jun 2013
    Posts
    3
    Thank you for the assistance, but will this help for a file that has its name changed every day?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,615
    You said you want to look for a file that contains a specific string. There must be some consistency for conditional code, even if it is to import every file in specified folder that has .xlsx extension.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    phildcs is offline Novice
    Windows XP Access 2002
    Join Date
    Jun 2013
    Posts
    3
    True! Thanks for the help.

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

Similar Threads

  1. Replies: 2
    Last Post: 09-06-2012, 12:56 PM
  2. Export from Access 2003 to Excel 2003 - missing fields
    By Jack Sheet in forum Import/Export Data
    Replies: 1
    Last Post: 02-29-2012, 04:09 PM
  3. import excel file to access 2003 yes, access 2007 no
    By stapik in forum Import/Export Data
    Replies: 9
    Last Post: 07-27-2011, 07:09 AM
  4. Importing Excel 2007 spreadsheet into Access 2002
    By jhjr in forum Import/Export Data
    Replies: 1
    Last Post: 06-17-2010, 02:05 PM
  5. Import Excel Worksheets into Access 2003
    By KramerJ in forum Programming
    Replies: 0
    Last Post: 03-18-2009, 04:11 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