Combo Box Help

rnickels

Registered User.
Local time
Yesterday, 19:03
Joined
Dec 8, 2006
Messages
48
Can someone please help me?

I have a combo box on a form that the user can select a player name.
Under the combo box I have a label called "Show me information about selected Player: that once clicked takes the user to another form which has all information about the player that was previously selected in the combo box.

Everything works fine UNLESS the user forgets to select a playername from the combo box and clicks on the label anyway. Obviously no player name was selected so a blank form opens which is a problem!

How can I ensure that a player name is selected and prevent the user from clicking on the label below without having previously selecting from the combo box?

If anyone can please help I would appreciate it so much.

Rob
 
One choice would be to only enable the label in the AfterUpdate event of the ComboBox.
 
Easier to put the code to open the form in the OnClick of the combo box. Then you are assured to have a value. To have an item in the combobox on entry to the form, in Default Value, put [comboboxname].ItemData (0)
 

Users who are viewing this thread

Back
Top Bottom