Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jun 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Changing table link path (97)

    I've been given an Access 97 file that someone else set up. It has linked tables to 150+ csv files (with column headers) -- 500+MB of data and a bunch of queries and macros. The problem is that the table links point to a directory on drive C (e.g. C:TheDataDirectory*.csv), but I need to put them on drive D because there's not enough disk space on C on my computer.

    I have tried using vba to change the "DATABASE=" part of the tabledef.connection string to D:TheDataDirectory. It seems to change it fine while the Sub is running, but as soon as it exits, it is set back to C. I don't care if we use VBA or the gui, but I just want to change them, fairly automatically. Linking csv files manually requires doing it one file at a time, which I don't plan to do.

    Suggestions where I'm going wrong?

    Thanks,
    jim

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Changing table link path (97)

    You are taking the right approach, changing the Connection property. Did you use the RefreshLink method after changing a connection?
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  3. #3
    New Lounger
    Join Date
    Jun 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Changing table link path (97)

    That was the problem. I think I had done a refresh or something, but not refreshlink.

    Thanks!!

Posting Permissions

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