Results 1 to 3 of 3

Thread: column names to list box

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2004
    Posts
    24

    column names to list box

    How can i loop through all column names in a table and display the name in list box or combo box

  2. #2
    Fanatic Member ahara's Avatar
    Join Date
    Nov 2003
    Location
    Toronto
    Posts
    531
    Code:
    for i = 0 to rs.Fields.Count -1
    
       cmbCombo.AddItem rs.Fields(i).Name
    
    next i
    "Knowledge is gained when different people look at the same information in different ways"

    - Louis Pasteur

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2004
    Posts
    24
    thanks

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