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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Box Choice

Status
Not open for further replies.

Kalpesh69

Programmer
Mar 18, 2003
3
GB
Hi

Does anyone know how I can write it so that when a user clicks an option in the list box, its should automatically create a connection to an MS Access 2000 database on a remote workstation ie., on a LAN. Any help would be much appreciated, as I'm still quite new. If you can point me to any good books on VB6 as well to learn from, it would be really helpful.

Many thanks

Kalpesh
 
The list box has a click event that you can use.

Inside the click event, check the listindex property. If it is not -1, then you can use lstbox.list(lstbox.listindex) to get at the selected item's text.

Then you make the connection...

mmilan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top