listbox help


Posted by Mike on December 20, 2001 2:24 PM

Hi

I need the coorect syntax to see if a user doesnt select anything from the listbox.

I tried if listbox1 = ""
and if listbox1 is null

but neither seemed to work when nothing was selected from the list.

Thanks

Posted by Joe Was on December 20, 2001 2:33 PM

Try listbox1=False

JSW

Posted by Tom on December 20, 2001 2:35 PM

if listbox1.ListIndex = -1



Posted by mike on December 20, 2001 2:54 PM

That did the trick thanks (NT)