Hi-lite a Line in a Combo Box

quest4

Registered User.
Local time
Today, 03:40
Joined
Oct 12, 2004
Messages
246
Good afternoon. I have a combo box which in GotFocus I have it dropdown, in otherwords open. I would like to know if it is possible to then hi-lite or select one of the lines in the combo box? In other words, set a default for that combo box, so the person entering the data could just click the hi-lited line, if they wanted the default, and then go on. Thank you in advance for any assistnace. :eek:
 
Go into your form in design mode. Right click on your combo box and choose properties. Click on the Data tab. One of the options is "Default Value." You can put whatever you want the default to be in this box, and when a new record is created the box will default to that value.
 
Thank you for the response. I tried that, but with the dropdown the default is not being hi-lited. I did try this and it appears to work:
Private Sub CreditType_GotFocus()
Me.CreditType.ListIndex() = 0
Me.CreditType.Dropdown
End Sub
I have not found anything that works better than this.
 

Users who are viewing this thread

Back
Top Bottom