VB combo list box and Access table 
Author Message
 VB combo list box and Access table

Hi all, I have a problem whit VB Combobox....
I have a ComboBox in a Form (in VB) and I want to this Combobox give me the
list of the Table in DataBase make whit Access.

When I click on this ComboBox, Only the first name appear in the choice in
the combobox...but I have 10 name in this Table, make with Access...

How I can corrige that...?


Thank a lot !



Thu, 31 Aug 2000 03:00:00 GMT  
 VB combo list box and Access table

Hi Mike!

Try this, and let me know how it works out!

Set recCustomer = dbSpot.OpenRecordset("SELECT Customer.Name " _
    & "FROM Customer ORDER BY Customer.Name", dbOpenSnapshot)

With recCustomer
        .MoveFirst
        Do
            cboCustomer.AddItem .Fields("Name").Value
            .MoveNext
        Loop Until .EOF = True
    End With
    cboCustomer.ListIndex = 0 'This will display the first customer

On Sun, 15 Mar 1998 12:49:01 GMT, "Mike Tredwell"

Quote:

>Hi all, I have a problem whit VB Combobox....

>I have a ComboBox in a Form (in VB) and I want to this Combobox give me the
>list of the Table in DataBase make whit Access.

>When I click on this ComboBox, Only the first name appear in the choice in
>the combobox...but I have 10 name in this Table, make with Access...

>How I can corrige that...?


>Thank a lot !



Fri, 01 Sep 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB combo list box and Access Table

2. Listing all tables or queries in a list/combo box

3. VB combo list box and Table database

4. Vb Combo list box and Table Data base

5. Limiting Access to Text Boxes, List Boxes and Combo Boxes

6. Use list from excel or access to populate combo/list box

7. VB List Box Versus Access List Box

8. How to list macro names in a combo box or a list box

9. : Can I list tables from a combo box?

10. Automatically placing list of table names in to a combo box

11. Table Listing in Combo Box

12. help listing tables in a combo box

 

 
Powered by phpBB® Forum Software