Attaching Tables Stephen Lebans Function

A

Attaching Tables

I went to Stephen Lebans website http://www.lebans.com/
and for anybosy using Access this site is a must see, but
I do have a question.

SAtephen I hope you read this, on your import database
table function the user has to individually select each
table, is there anyway to make it loop through and then
link\import each table in the selected database


Thanks

Nigel
 
S

Stephen Lebans

Why not run the Import WIzard?
DoCmd.RunCommand acCmdImport

If for some reason you still want to use my code then you would have to:
1) Change the ListBox's Multiselect property
2) Loop through the control's ItemsSelected collection and import each
table. THere is lots of code around showing you how to itinerate through
this collection.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

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