I have a function that is successfully being passed a list of numbers into a variable called ActivityIDs (typically like 7,8,21,28).
I want to use this variable in a Case statement but I can'ft figure out how.
I've used the case statement in the more "traditional" way
Select Case rsA(0)
Case 7,8,21,28
Do some stuff
End Select
and it works fine but whan I try to use the variable as below it won't work
Select Case rsA(0)
Case ActivityIDs
Do some stuff
End Select
When I debug.print ActivityIDs it looks correct
Any help would be appreciated
This is what I'm passing: =getActivityNames([tblDelegates.DelegateID],"7,8,21,28")
I just figured out the numbers are being passed as numbers; I thought they would come in as "7,8,21,28", instead they are coming as 782128.
Can anyone advise me how to get them in as I was wanting please?