While loop to add items in a combo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    While loop to add items in a combo

    Hi
    I want to add records from a database into a combo box.
    using
    ADODC
    VB6
    Thanx
  • jrtox
    New Member
    • Sep 2007
    • 89

    #2
    Originally posted by Ali Rizwan
    Hi
    I want to add records from a database into a combo box.
    using
    ADODC
    VB6
    Thanx

    While Not RS.EOF

    ComboBox1.AddIt em RS.Recordet("Fi eldName")
    RS.Movenext

    Wend

    Regards

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Originally posted by jrtox
      While Not RS.EOF

      ComboBox1.AddIt em RS.Recordet("Fi eldName")
      RS.Movenext

      Wend

      Regards
      Thanx
      But i have made after some effort.
      Thanx again

      Comment

      Working...