Hi all,
I have a listbox on a form, populated by VBA.
The values on the listbox are dynamic, depending on query results, in this way :-
I want to create events based when the user double clicks the listbox. I was doing this using a select case, but as the listbox values are dynamic, I'm struggling.
I hoped this would work :-
I added a watch for this, which returns true, but the code in the case statement is skipped.
I have a listbox on a form, populated by VBA.
The values on the listbox are dynamic, depending on query results, in this way :-
Code:
Me.lstReports.AddItem "Puppy (" & RS.Fields(0) & ")"
I want to create events based when the user double clicks the listbox. I was doing this using a select case, but as the listbox values are dynamic, I'm struggling.
I hoped this would work :-
Code:
Case Left(Me.lstReports.Column(0), 5) = "Puppy"
I added a watch for this, which returns true, but the code in the case statement is skipped.