pass a parameter value into a macro argument

D

dan_in_nz

Hi.
I am writing a macro that will create tables using information from a remote
ODBC database. I am using the TransferDatabase method. To set this up to
work, you need to enter arguments for the ODBC link name, server name.
database name, password and login. I can hardcode these for one location, but
is there a way to set up parameters so that other users in other locations
can enter the information relevant to their sites and have it passed into the
macro arguments. Running MS Access 2000 on Win2k Pro Sp3.
 
S

Steve Schapel

Dan,

You can set up a form with unbound textboxes or comboboxes, where the
user can enter the ODBC connection string etc, and then refer to these
controls in the arguments of your TransferDatabase macro action, using
syntax such as...
=[Forms]![NameOfForm]![NameOfControl]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top