hi ...
i have form with combo box and button add when i choose the name form combo box and press add the form work good, what i need is, when the user didnt choose one of the values from combobox and hit the button add, msg will show to user "Please choose one value from combo box " ,
and the msg will disappear when the user choose the value from combo box and hit add button
i try something like this :
so what is the wrong ???/
i have form with combo box and button add when i choose the name form combo box and press add the form work good, what i need is, when the user didnt choose one of the values from combobox and hit the button add, msg will show to user "Please choose one value from combo box " ,
and the msg will disappear when the user choose the value from combo box and hit add button
i try something like this :
Code:
[COLOR=Red][B]
if (CmbNames.value="") then
do
loop until (CmbNames.value<>"")
msgbox [COLOR=DeepSkyBlue]"Please choose one value from combo box " [/COLOR]
end if
loop[/B][/COLOR]
so what is the wrong ???/