Hi
I'm using the following code and it works initially when a few records in a listbox (ListFrom) are selected but then I'm greeted with 'invalid use of null' when I run it a second time. The strange thing is that when I set the Multi Select property of the listbox to 'Extended', the code works!!!
Other functions are called in the procedure that sets a field status to false and the row source filters out the list, I don't think that it's causing the issue.
The big problem is that I need the multi select property to be set to 'Simple' - is there any way around this?
I'm using the following code and it works initially when a few records in a listbox (ListFrom) are selected but then I'm greeted with 'invalid use of null' when I run it a second time. The strange thing is that when I set the Multi Select property of the listbox to 'Extended', the code works!!!
Other functions are called in the procedure that sets a field status to false and the row source filters out the list, I don't think that it's causing the issue.
Code:
Dim v As Variant
Dim strWhere As String
For Each v In Me.ListFrom.ItemsSelected
strWhere = Me.ListFrom.ItemData(v)
Next
The big problem is that I need the multi select property to be set to 'Simple' - is there any way around this?