Re: Will table-Linking breaks after upload to website? Please help.

From: TC (no_at_email.here)
Date: 03/26/04


Date: Fri, 26 Mar 2004 10:52:56 +1030

The alternative (and probably better) method is to run code at startup that
determines whether the links are broken, and if so, relinks the tables to
the database in the new location. This code could be written to assume, for
example, that all of the databases are in the same location. Then, the
following code gives the full pathname of the directory where the db's are:

   dim sDir as string
   sDir = dbengine(0)(0).name
   while right$ (sdir, 1) <> "/"
       sdir = left$ (sdir, len (sdir) - 1)
   wend
   msgbox sdir

HTH,
TC

"chris" <anonymous@discussions.microsoft.com> wrote in message
news:12fc101c41226$45122210$a301280a@phx.gbl...
> It will break.
> The links are stored as absolte paths.
> Best create the identical path on your local machine, link
> them there, then copy them.
>
> >-----Original Message-----
> >
> >Hi All,
> >
> > My website is using 3 Access databases. I link
> the 1st database to
> >2 tables (1 in each) in the rest of the databases. For
> example:
> >
> > DB 1 contains: Table1, -->Table2, -->Table4
> > DB 2 contains: Table2, Table 3
> > DB 3 contains: Table4, Table 5
> >
> > That is, Database 1 has linked Table2 from DB2
> and linked Table4
> >from DB3.
> >
> > Assuming all the tables locally located in path:
> C:\Data\
> >
> > Question: Will the links break if let say,
> upload them to my
> >website, which has physical path: c:\site\Data ?
> >
> >
> > What I am concern about is, will Access main
> relative path linking
> >or it only uses absolute path? Thanks for any
> information.
> >
> >
> >
> >Regards,
> >
> >JBLi
> >
> >
> >.
> >



Relevant Pages

  • Re: Opening codes
    ... Doug Steele, Microsoft Access MVP ... 'This function will disable the shift at startup causing the Autoexec ... Dim db As Database ...
    (microsoft.public.access.modulesdaovba)
  • Re: Protecting DB
    ... Security (ULS). ... Assigning appropriate permissions to various database objects ... startup properties for your users. ... to disable the Shift key bypass for those users who are wedgie resilient. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Opening codes
    ... more secure syntax shown in http://www.mvps.org/access/general/gen0040.htm ... 'This function will disable the shift at startup causing the Autoexec ... Dim db As Database ...
    (microsoft.public.access.modulesdaovba)
  • RE: Retrieve no. of forms, tables, etc. from Access DBs
    ... There are, I believe, two ways to make screens like this ... Startup code that is... ... Any of the 25000 database in the list may contain code that runs ... If so, when I run the below example in Excel, code execution ...
    (microsoft.public.access.modulesdaovba)
  • Re: Table creation
    ... >> Isn't there a way to make the database window unavailable to certain ... > Create a startup form that is opened on ... > Use the features in Tools, ... > If you need to bypass these startup features, you can hold the shift key ...
    (microsoft.public.access.security)