Results 1 to 2 of 2
  1. #1
    kjuelfs is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    6

    Change linked table reference automatically

    Hello,



    I have a database which uses an excel spreadsheet as the source for one of its tables. I know I can link the spreadsheet (read access only required) directly in Access without importing it. The problem is, the file changes its name daily (the filename includes the date), so any link would not work after the re-name.

    Is there a way to automatically re-link the file with the new name, for example in VBA using an event procedure?

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sure; check out TransferSpreadsheet in VBA help. One of the options is to link to a spreadsheet.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Reference table
    By Newcomer in forum Access
    Replies: 6
    Last Post: 06-03-2010, 03:08 PM
  2. Replies: 1
    Last Post: 01-26-2010, 10:36 PM
  3. Replies: 3
    Last Post: 01-21-2010, 08:10 PM
  4. Replies: 2
    Last Post: 10-27-2009, 07:09 AM
  5. Replies: 0
    Last Post: 08-01-2009, 12:43 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