Results 1 to 3 of 3

Thread: Having difficulty loading combobox from access

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2002
    Posts
    44

    Having difficulty loading combobox from access

    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

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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:
    1. ComboBox1.DataSource=ds.Tables(0)
    2. ComboBox1.DisplayMember="MyFieldName"

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2002
    Posts
    44
    Oh, I got it! Thanks for your help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width