D
Daniel
I have an MDB that I support for a group of users that need to
periodically link about 15 dbf files into. These files vary month to
month. And their location varies each time. The user has to copy an
empty version of my MDB into a new folder along with that month's DBFs
and then manually link to all of the DBFs and rename the links.
Pain in the butt, obviously, so I would like to automate this somehow.
I know how to write the code to link to external files, but is there a
way to create a connection string so that the path to the files changes
dynamically based on where the mdb is located when the code is run?
In other words, how do you create a variable path to the files without
hard coding the name of the parent folder? Like the way windows refers
to the system folder as %SYSTEMROOT% or whatever.
Any help is appreciated.
Thanks!
Daniel
periodically link about 15 dbf files into. These files vary month to
month. And their location varies each time. The user has to copy an
empty version of my MDB into a new folder along with that month's DBFs
and then manually link to all of the DBFs and rename the links.
Pain in the butt, obviously, so I would like to automate this somehow.
I know how to write the code to link to external files, but is there a
way to create a connection string so that the path to the files changes
dynamically based on where the mdb is located when the code is run?
In other words, how do you create a variable path to the files without
hard coding the name of the parent folder? Like the way windows refers
to the system folder as %SYSTEMROOT% or whatever.
Any help is appreciated.
Thanks!
Daniel