Try:
If Me!myListBox.column(0) = "FirstValue" then
DoCmd.OpenForm "myForm1"
Elseif Me!myListBox.column(0) = "2ndValue" then
DoCmd.OpenForm ":myForm2"
' as many as you need. Can you really count on the listbox valuse
remaining static?
'list/combo boxes start their columns with 0, so the second column (if
you are using a 'zero width ID in the first column) would be 1.
End If
-Ed
"DS" <bo******@optonline.net> wrote in message
news:cU*****************@fe08.lga...
misscrf wrote: take a look at the double click event for the list box.
That works to open a form, but the problem is when you click anywhere in
the box the form opens. I need to open a different form for each item or
value in the listbox.
Thanks
DS