| | |
|
|
|
Auto select the first item of a combo box |
| message from =?Utf-8?B?QW5uYQ==?= on 28 May 2004 |
Is it possible to display the first item of the list in a combo box when the form is loaded?
|
| George Nicholson replied to =?Utf-8?B?QW5uYQ==?= on 28 May 2004 |
Private Sub Form_Load()
' Pre-select the first item (.Value is the default property so not
actually necessary)
Me.lboMyControl.Value = Me.lboMyControl.ItemData(0)
' Run the control's AfterUpdate event based on the selection (make the
event Public)
Call Me.lboMyControl_AfterUpdate
End Sub
|
| =?Utf-8?B?QW5uYQ==?= replied to George Nicholson on 28 May 2004 |
Thanks so much. It is perfect !!!!
|
|
Archived message: Auto select the first item of a combo box (MS Access)