Welcome to dbFreaks.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Filling comboxbox without using additem

 
   Database Help (Home) -> Visual Basic RSS
Next:  2 databases & synchronization....  
Author Message
Lennart Nielsen

External


Since: Jun 06, 2004
Posts: 1



(Msg. 1) Posted: Sun Jun 06, 2004 10:58 pm
Post subject: Filling comboxbox without using additem
Archived from groups: microsoft>public>vb>database (more info?)

Can you populate a forms 2.0 combobox without using additem, rather by
binding it directly to an Access database? I want to use the Combobox rather
than the Datacombo for some of the other properties it posses.

Nordtorp

 >> Stay informed about: Filling comboxbox without using additem 
Back to top
Login to vote
Utf-8BS2plbGw

External


Since: Jan 30, 2004
Posts: 29



(Msg. 2) Posted: Mon Jun 07, 2004 7:06 am
Post subject: RE: Filling comboxbox without using additem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, you can. but you also need data control for this...

I cannot give you an example since I never bind any of my controls at all.

Kjell

 >> Stay informed about: Filling comboxbox without using additem 
Back to top
Login to vote
Giacomo

External


Since: Jun 07, 2004
Posts: 6



(Msg. 3) Posted: Tue Jun 08, 2004 1:09 am
Post subject: Re: Filling comboxbox without using additem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you add a datacontrol, you will see the data binding properties come
alive in the combo box. Then you simply configure them. However, using a
datagrid that is bound provides you with IMHO, greatly extended programming
capabilities. With some imagination, the screens are cleaner. If you
disconnect your recordsets before you bind, you can use data marshalling to
load them back into the database and thus enable user editing... and so on.

To bind the datacontrol... right click it's properties and point it to your
database. You will need to reference the datacontrol using the component
dropdown from the project menu. You will also need a reference to the MS
ado (if you use ado and I would recommend you do as it is still supported)
and if possible choose the OLEDB components (designated by the "(OLEDB)" at
the end of the component description).

Finally, examine one of the properties using your intellisense (the little
descriptions that come up once you bind your object) and then highlight the
property listed in the intellisense and hit F1. A good example will come up
and direct you from there.

Giac

"Lennart Nielsen" <lnielsen.TakeThisOut@uni-systems.com> wrote in message
news:a4Pwc.881$T46.59261@news.uswest.net...
 > Can you populate a forms 2.0 combobox without using additem, rather by
 > binding it directly to an Access database? I want to use the Combobox
rather
 > than the Datacombo for some of the other properties it posses.
 >
 > Nordtorp
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Filling comboxbox without using additem 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]