liquidspaces
Regular
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 doesn't select anything in the listbox. I'm having a problem trying to handle the error.
Ideally I'd 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
I'm 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 I'd 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
I'm 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.