How do you display a field based upon a specific item selected in a listbox?
I created a form that contains a listbox (called lst_Region). If a specific item in the listbox is selected another listbox (lst_asia) should be displayed.
The following code is attached to the On-click event for the 1st listbox:
If Me!lst_Region!Selected(0) = True Then
Me!lst_asia.Visible = True
End If
When I click on the specific item in the first listbox, the following error message is displayed:
"Run-time Error 451 - Object Not a collection"
Any help would be appreciated. Thank you in advance.
I created a form that contains a listbox (called lst_Region). If a specific item in the listbox is selected another listbox (lst_asia) should be displayed.
The following code is attached to the On-click event for the 1st listbox:
If Me!lst_Region!Selected(0) = True Then
Me!lst_asia.Visible = True
End If
When I click on the specific item in the first listbox, the following error message is displayed:
"Run-time Error 451 - Object Not a collection"
Any help would be appreciated. Thank you in advance.