pls help : COMBO box or list box 
Author Message
 pls help : COMBO box or list box

hi there
i would apprieciate some help please, my problems are
1. i have a database from which i would like to chose a certain record
of a field, these recs should automatically be displayed in an combo
or list box. how do i do this

2. what should i use are combo or a list box, and what difference will
either make?

tia
Thanks In Advance From..
Irfaan Hamid
Kuala Lumpur,
Malaysia.



Mon, 23 Jul 2001 03:00:00 GMT  
 pls help : COMBO box or list box

Quote:
>hi there
>i would apprieciate some help please, my problems are
>1. i have a database from which i would like to chose a certain record
>of a field, these recs should automatically be displayed in an combo
>or list box. how do i do this

This is in a Module that I have:
Public Sub LoadCallTypes(ListBoxName As Object)
        Set MyDB = Workspaces(0).OpenDatabase(App.Path + "\PDisp.mdb")
        Set MyTable = MyDB.OpenRecordset("CallType")  ' Open Recordset.
            Do Until MyTable.EOF    ' Do until end of file.
                    MyCall = MyTable.Fields("CallType")
                    ListBoxName.AddItem MyCall
                    MyTable.MoveNext    ' Move to next record.
                    Loop
End Sub

If you don't need to display all the records, you might want to try to using
"Find"

Quote:
>2. what should i use are combo or a list box, and what difference will
>either make?

I think that is going to be your personal preference, a combo box is used if
you only want (1) record to be viewed and selected, and a list box is used
if you want multiple records viewed and/or selected.


Mon, 23 Jul 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. dialog box with list box or combo box

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

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

4. HELP! ADO bound list box and combo box

5. Help filling second combo box from fist combo box

6. Help filling second combo box from first combo box

7. Combo box spawning list box

8. Examples of OwnerDrawn for Combo Box / List Box / Menu / Toolbars

9. List Box and Combo box

10. adding to a combo box or list box

11. Updating list boxes and combo boxes

12. How could I combine the features of combo box and list box

 

 
Powered by phpBB® Forum Software