combobox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vuthanhpho
    New Member
    • Feb 2008
    • 1

    combobox

    Please help me by post your code how to populate combobox from a table (Access format)

    Many Thanks
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    #2
    Please always specify which control you are using either its ADODC or ADODB or anyother.

    For ADODC:

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Please always specify which control you are using either its ADODC or ADODB or anyother.

      For ADODC:

      Code:
       Do While Not Adodc1.Recordset.EOF 
      Combo1.Additem(Adodc1.Recordset.Fields(Field Name or Field No)
       
      Loop
      For ADODB:

      Code:
       Do While Not Rec.EOF 
      Combo1.Additem(Rec.Fields(Field Name or Field No) 
      Loop
      In case of ADODB you need to declare a recordset Rec is the name of Recordset of ADODB Connection.

      For more help you can ask questions.

      Regards
      >> ALI <<

      Comment

      Working...