Re: ComboBox Row Source = Result of DB Query?
From: Sijin Joseph (sijinNOSPAMdotnet_at_hotmail.com)
Date: 09/26/04
- Next message: Sijin Joseph: "Re: Testing Internet connection?"
- Previous message: Sijin Joseph: "Re: Maintaining and Using App Login details"
- In reply to: Zachary Turner: "ComboBox Row Source = Result of DB Query?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 26 Sep 2004 20:26:15 +0530
The easiest way would be to drag the table from server explorer (you
will need to create a new DB connection to the access table in the
server explorer to be able to view the table) onto your form, the
required connections and adapters get automatically setup, create a
dataset by r-clicking on the adapter, next set the datasource property
of the combo to the dataset.
These articles describe this in detail
http://www.developer.com/net/vb/article.php/3092741
http://www.startvbdotnet.com/ado/server.htm
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
Zachary Turner wrote:
> I have an access database and I want to populate a combo box with the
> contents of a Table in my access database. What is the best way to do
> it? I was trying to do it at design time, but not sure if it can be
> done.
- Next message: Sijin Joseph: "Re: Testing Internet connection?"
- Previous message: Sijin Joseph: "Re: Maintaining and Using App Login details"
- In reply to: Zachary Turner: "ComboBox Row Source = Result of DB Query?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|