W
William Taylor
I have a function that builds a list of selected items in a multi-select
listbox. I pass the form name into the function and use the following code
snippet:
For Each varItem In ctlList.ItemsSelected
' Build String
strTemp = strTemp & "'" & Forms(pstrFormName)!lstTransfers.ItemData(varItem)
& "', "
Next varItem
I want this to be a reusable function so my question is this: Can I pass the
control name in as a variable as well? what is the syntax? would it be a
string variable or a control variable
listbox. I pass the form name into the function and use the following code
snippet:
For Each varItem In ctlList.ItemsSelected
' Build String
strTemp = strTemp & "'" & Forms(pstrFormName)!lstTransfers.ItemData(varItem)
& "', "
Next varItem
I want this to be a reusable function so my question is this: Can I pass the
control name in as a variable as well? what is the syntax? would it be a
string variable or a control variable