Results 1 to 4 of 4
  1. #1
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658

    Stop changing paths for linked tables?

    Windows 11, Access 2021

    I'm getting a mini demo ready. I'm not sure where the demo users will place the Access files.
    One file is the .accde, the other is a log file as an .accdb.
    I went to the Linked Table Manager and put in a path that would say the log file is in the same directory (using "." as is normal in paths) where Access is starting.

    It looks like this:

    Click image for larger version. 

Name:	230901Link1.jpg 
Views:	18 
Size:	30.0 KB 
ID:	50712

    If I close and reopen the data base, it looks like this (back to the full path on my PC, not where the user will put it!):

    Click image for larger version. 

Name:	230901Link2.jpg 
Views:	18 
Size:	35.6 KB 
ID:	50713



    Anyone know how I can get Access to stop doing this? Or know of a valid workaround?
    (It seems like I spend a lot of time working around Access boneheads like this, no other DOS/Windows application I've worked on does this kind of crap. Put in a path, use the damn path, stop overwriting it.)

    Obviously, I don't want demo users to have to go into the Linked Table Manager just to run a small demo.
    (I know, short-term, I could pull the linked tables back into the .accde, but that just kicks the problem down the road. This will be an ongoing install problem unless fixed.)

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Usually you would have code in the Autoexec macro or the start-up form's Open event to relink the tables by setting the .Connect property of those table(def)s to CurrentProject. & "" & "YourDbLogName.accdb"

    https://stackoverflow.com/questions/...ogrammatically

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    @Gicu, post #2 Thanks for that. I'll go read.
    But I'm curious why we would need code to do something the link manager is supposed to do? Hmmm

  4. #4
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    A final note before I mark this solved. The article in post #2 was helpful. The "solution" required some tweaking in that I have more than one extermal .accdb that I could be linking too, which most anyone should plan on too.

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

Similar Threads

  1. Changing Tables Front-End DB are Linked To
    By JoeM in forum SQL Server
    Replies: 8
    Last Post: 03-31-2015, 11:09 PM
  2. Replies: 2
    Last Post: 11-03-2014, 02:36 PM
  3. Replies: 3
    Last Post: 12-14-2011, 02:50 PM
  4. Stop Access Changing My Data
    By R3mix3r in forum Access
    Replies: 5
    Last Post: 09-11-2011, 10:33 PM
  5. Linked Tables and changing filename
    By a2music in forum Database Design
    Replies: 1
    Last Post: 02-28-2011, 03:52 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