I am trying to load a combobox from a table in access but whatever I set it with, it just comes up blank and I'm not terrribly familiar with the new way that datasets operate. Can anyone psot an example of the code for me? Thanks
Printable View
I am trying to load a combobox from a table in access but whatever I set it with, it just comes up blank and I'm not terrribly familiar with the new way that datasets operate. Can anyone psot an example of the code for me? Thanks
What part is giving you trouble filling the DataSet? Or connecting it to the combobox?
Connecting it should be just a matter of setting the Datasource and DisplayMember properties.
VB Code:
ComboBox1.DataSource=ds.Tables(0) ComboBox1.DisplayMember="MyFieldName"
Oh, I got it! Thanks for your help!