Using a parameter in a transferdatabase macro

G

ginger

I have 55 county files I need to import to a central db.
I am looking for a way to pass the county name as a string
to the database name parameter in the transferdatabase
macro.
Example: \\ivan\mm\field office
backups\"COUNTYNAME"\data\vrdisedu.mdb
"COUNTYNAME" will be 55 different counties, with all other
info staying the same.

Please help!
 
K

Ken Snell

You might try this:

="\\ivan\mm\field office backups\" & InputBox("Enter County Name:") &
"\data\vrdisedu.mdb"
 
G

ginger

Thank you. That worked GREAT!
-----Original Message-----
You might try this:

="\\ivan\mm\field office backups\" & InputBox("Enter County Name:") &
"\data\vrdisedu.mdb"


--

Ken Snell
<MS ACCESS MVP>




.
Thank you. That worked GREAT!
 

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