R
Randy
Hi, I'm venturing out from VBA into VB Express 2005. I've searched
MSDN and this group for what I think should be a simple and common
exercise - populating a combobox with the values in a table and
allowing the user to enter a new value, which would then be added to
the table.
I've made a really simple example to try to accomplish this. I've
taken the Northwind db and added the Categories table to my data
sources. Then I dragged the CategoryID field onto the form as a
combobox as well as the CategoryName and Description fields as text
boxes. In the properties for the CategoryID combobox, I've attempted
to bind the data with "CategoriesBindingSource - CategoryID" in each
of the four DataBindings options (SelectedItem, SelectedValue, Tag,
Text) since I don't the various roles of these four options.
When I build the app and click the CategoryID combobox, there is
nothing there. My understanding is that I shouldn't need any code to
accomplish this, but maybe I'm wrong. Clearly, I'm wrong about
something! Can somebody please explain this process to me? I'm
spinning my wheels and not getting anywhere.
Much appreciated!
Randy
MSDN and this group for what I think should be a simple and common
exercise - populating a combobox with the values in a table and
allowing the user to enter a new value, which would then be added to
the table.
I've made a really simple example to try to accomplish this. I've
taken the Northwind db and added the Categories table to my data
sources. Then I dragged the CategoryID field onto the form as a
combobox as well as the CategoryName and Description fields as text
boxes. In the properties for the CategoryID combobox, I've attempted
to bind the data with "CategoriesBindingSource - CategoryID" in each
of the four DataBindings options (SelectedItem, SelectedValue, Tag,
Text) since I don't the various roles of these four options.
When I build the app and click the CategoryID combobox, there is
nothing there. My understanding is that I shouldn't need any code to
accomplish this, but maybe I'm wrong. Clearly, I'm wrong about
something! Can somebody please explain this process to me? I'm
spinning my wheels and not getting anywhere.
Much appreciated!
Randy