Hi,
One of the forms has a combobox where a user makes a selection then clicks on a command button. In the click code of the command button I check that a user made a selection in the combobox using this code:
IF this.Parent.site_lookup.ListIndex = 0
=MESSAGEBOX("Please select Program",48,"Missing Selection")
RETURN
ENDIF
But a couple of times (which I can't duplicate) the combobox's DisplayValue (or the Value you see) was blank but the above code didn't fire. It tells me that there could be a case where the .ListIndex is greater than 0 but no item is selected in the combo.
How else, beside the code above, I can check that the user did indeed make a selection?
Update: In other words, can I use the property DisplayValue to check if user made the selection (in addition to the ListIndex)?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham