liquidspaces
Well-known member
I have a listbox that lists information from a database, and a search button that when clicked retrieves the appropriate data and displays it on the form. Everything works just fine, unless the user doesnt select anything in the listbox. Im having a problem trying to handle the error.
Ideally Id like to do it something like this:
if user selected nothing then
msgbox("You must select a value.")
end if
if user selected something then
display data
end if
Im having a difficult time checking to see if the user has selected anything. Does that make sense? Any suggestions? My real problem is the syntax of checking for a selection.
Ideally Id like to do it something like this:
if user selected nothing then
msgbox("You must select a value.")
end if
if user selected something then
display data
end if
Im having a difficult time checking to see if the user has selected anything. Does that make sense? Any suggestions? My real problem is the syntax of checking for a selection.