Kiwi-Wombat
Registered User.
- Local time
- Today, 06:39
- Joined
- Aug 2, 2004
- Messages
- 56
I want to assign a Listbox to a variable (the listbox name not the contents) e.g.
Dim SelectedList as as ListBox
Select Case whatever
case 1
SelectedList = ListBoxName
goto OtherCode
case 2 etc
End select
OtherCode:
SelectedList.Requery
The error message I get is "Method or data member not found". This stops on SelectedList in OtherCode
I tried Dim SelectedList as String but that didn't work either
Any help would be appreciated
Dim SelectedList as as ListBox
Select Case whatever
case 1
SelectedList = ListBoxName
goto OtherCode
case 2 etc
End select
OtherCode:
SelectedList.Requery
The error message I get is "Method or data member not found". This stops on SelectedList in OtherCode
I tried Dim SelectedList as String but that didn't work either
Any help would be appreciated