Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open MS Access in VB from a user prompt on the menu

Status
Not open for further replies.

rtvillan

Technical User
Joined
Jan 3, 2002
Messages
9
Location
US
Hello,

How can a user open up and choose an MS Database from a user menu in a form ie -> File -> open .... then choose a DB. It has to be in ADO.

Example:

1. the File name is db1.mdf
2. when it's chosen, the fields are tied to the text boxes thru a connection string automatically.


Thanks.
 
HI

1. Use the common dialog to select the file.
2. Use the commondialog1.filename and pass that as
connection string while opening the Database.

**check my FAQ it will solve lot of your Questions. thread181-27567

If you need more help do let me know.

Thanks Murali Bala
 
I'm extremely sorry for pointing to wrong thread
check the below

Create Acess Database, Tables and Fields through VB
faq222-1422

Thanks Murali Bala
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top