Re: Can I set relative paths for linked tables instead of absolute path?
- From: "Amy Blankenship" <Amy_nospam@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 Nov 2005 09:04:34 -0600
I don't think that would work, because a web application does not have a
"front end" as you are used to thinking of it, and usually the server either
won't have Access installed or you can't get Remote Desktop or other similar
way to run the Access file to get it to connect itself. So you need to make
sure the connection is pointed correctly before you upload.
Hope this clarifies;
Amy
"Tim Ferguson" <FergusonTG@xxxxxxxxxxxx> wrote in message
news:Xns9716C1DC1CF97garbleme4455656@xxxxxxxxxxxxxxxx
> Hyko <none@xxxxxxxxxxxxxxxxx> wrote in
> news:BFA90D5C.7C8E%none@xxxxxxxxxxxxxxxxx:
>
>> If I link a table to my Access DB from another Access DB the absolute
>> path to this DB is used. When I upload the database to the server,
>> where I use the databases as data source for a web application it
>> cannot find this path of course.
>>
>
> As long as the (front end) mdb knows, or can find out, the site of the
> back end file, you can write a short subroutine that will update the
> .connect property of the relevant tabledefs:
>
> strConnect = ";DATABASE=" & strPathToMDBFile
> For p = 0 To db.TableDefs.Count - 1
> Set tdf = db.TableDefs(p)
> If tdf.Attributes And DB_ATTACHEDTABLE Then
> If tdf.Connect <> strConnect Then
> tdf.Connect = strConnect
> tdf.RefreshLink
> End If
> End If
> Next p
>
> Note that this is uses the DAO library: it's probably possible using ADOX
> but I can't imagine why anyone would want to...
>
> All the best
>
>
> Tim F
>
.
- Follow-Ups:
- Re: Can I set relative paths for linked tables instead of absolute path?
- From: Tim Ferguson
- Re: Can I set relative paths for linked tables instead of absolute path?
- References:
- Prev by Date: Re: Updating Database
- Next by Date: Re: When "Splitting" isn't enough
- Previous by thread: Re: Can I set relative paths for linked tables instead of absolute path?
- Next by thread: Re: Can I set relative paths for linked tables instead of absolute path?
- Index(es):
Relevant Pages
|
Loading