Results 1 to 2 of 2

Thread: How to display the list in combo box from database fields?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    13

    How to display the list in combo box from database fields?

    Hi sir,

    Is there any way to display my database fields (column) into the combo box list?


  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: How to display the list in combo box from database fields?

    There sure is....

    VB Code:
    1. 'query on your database
    2. 'open recordset
    3.  
    4. While Not YourRecordset.EOF
    5. Combo1.Additem YourRecordset!DatabaseField
    6. YourRecordset.Movenext
    7. Loop
    8.  
    9. 'close recordset

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