Linking tables using VBA
From: Tim (anonymous_at_discussions.microsoft.com)
Date: 04/16/04
- Next message: Per Timm: "Re: Can Access2000 link to Access97"
- Previous message: dgabrriel: "Can't Import Forms from earlier Access"
- Next in thread: Ken Snell: "Re: Linking tables using VBA"
- Reply: Ken Snell: "Re: Linking tables using VBA"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Apr 2004 09:06:11 -0700
I am building a database which can be used stand-alone on
a laptop or linked to a central database when connected to
a network.
I have written code to enable the user to establish a link
when required, as follows:
DoCmd.TransferDatabase acLink, "Microsoft
Access", "D:\Folder\Database.mdb",
acTable, "Logon", "Logon", False
I have also written code to delete the table when the user
needs to log-off the network.
My problem is that I have a number of tables I wish to
link in this way and rather than hard-code the details
separately, I am sure I should be able to record the
relevant details (table names, path etc) in a table and
then have the code loop through, linking each in turn.
Does anyone have any ideas on how I can do this?
- Next message: Per Timm: "Re: Can Access2000 link to Access97"
- Previous message: dgabrriel: "Can't Import Forms from earlier Access"
- Next in thread: Ken Snell: "Re: Linking tables using VBA"
- Reply: Ken Snell: "Re: Linking tables using VBA"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|