J
Jesper F
The person I'm developing a split database for places the
backend database in F:\database\BE\ (won't change).
I'd like to set this path before I email him the db so
that it works without him having to relink the tables. I'm
trying to use the following to relink them, but it doesn't
work since there's no F-drive on my own computer and I'm
getting the network error.
Dim db As Database, tdf As TableDef
Set db = CurrentDb
For Each tdf In db.TableDefs
tdf.Connect = ";DATABASE=F:\database\BE\dbname"
'tdf.RefreshLink
Next
This fails to relink them, but if I uncomment
the .refreshlink line I get the network error since
there's no F-drive.
Can I set a path that I know will work on the customers
computer even though the path doesn't exist on my own
computer?
Ps. I'd prefer to not let the user browse the open-file
dialog to look for the backend - therefore this approach.
backend database in F:\database\BE\ (won't change).
I'd like to set this path before I email him the db so
that it works without him having to relink the tables. I'm
trying to use the following to relink them, but it doesn't
work since there's no F-drive on my own computer and I'm
getting the network error.
Dim db As Database, tdf As TableDef
Set db = CurrentDb
For Each tdf In db.TableDefs
tdf.Connect = ";DATABASE=F:\database\BE\dbname"
'tdf.RefreshLink
Next
This fails to relink them, but if I uncomment
the .refreshlink line I get the network error since
there's no F-drive.
Can I set a path that I know will work on the customers
computer even though the path doesn't exist on my own
computer?
Ps. I'd prefer to not let the user browse the open-file
dialog to look for the backend - therefore this approach.