T
Tim
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?
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?