rsewell
Registered User.
- Local time
- Today, 06:55
- Joined
- Jun 4, 2003
- Messages
- 12
Could someone please take a look at this and try to tell me why I keep getting a type mismatch error?
Code Start:
'array is created as a dynamic array, must tell it the upper bound
ReDim monthArray(ctlMonth.ItemsSelected.Count)
'need a counter to change the array element as they are populated
y = ctlMonth.ItemsSelected.Count
'need to grab the values of the multiple selections from the list box
'and populate the array
For Each varMonth In ctlMonth.ItemsSelected
monthArray
= ctlMonth.ItemData(varMonth)
'ERROR OCCURS ON PREVIOUS LINE
'need to decrement the array counter
y = y - 1
Next varMonth
Any help would be greatly appreciated. Thanks!
Code Start:
'array is created as a dynamic array, must tell it the upper bound
ReDim monthArray(ctlMonth.ItemsSelected.Count)
'need a counter to change the array element as they are populated
y = ctlMonth.ItemsSelected.Count
'need to grab the values of the multiple selections from the list box
'and populate the array
For Each varMonth In ctlMonth.ItemsSelected
monthArray

'ERROR OCCURS ON PREVIOUS LINE
'need to decrement the array counter
y = y - 1
Next varMonth
Any help would be greatly appreciated. Thanks!
