|
-
Apr 11th, 2000, 05:17 AM
#1
Thread Starter
New Member
How can I load a comboBox (CmbFirstName)that is on frmCustomers inside a standard module(mdlCustomers).
-
Apr 11th, 2000, 05:25 AM
#2
Something like this
with frmCustomers.cmdFirstName
.Clear
.Additem Firstname or whatever
.ListIndex = 0
End With
Of course you would loop on the name additions.
Hope it Helps
-
Apr 11th, 2000, 05:48 AM
#3
If you want that procedure to be reusable, then you can so something like this:
Module Code
Code:
Public Sub LoadCombo(pCombo As Combobox)
With pCombo
.Clear
.AddItem "John"
.AddItem "Mike"
End With
End Sub
Form Code
Code:
Private Sub Form_Load()
LoadCombo Combo1
End Sub
-
Apr 11th, 2000, 05:55 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|