I have my field names stored in a 2D array:(arrContr ols)
I want to loop through my list box controls and pull the selections for each.
arrControls(0,1 ) = [lst_Status]
arrControls(1,1 ) = "StatusID"
I need to pass this to a function to read the selections:
fItemSel("Statu sID", [lst_Status])
Which would return (if the user selected id 2 and 3):
"StatusID In(2,3)"
When I don't put "" around the field name: [lst_Status]
It tries to pull the selection instead of the field name.
When I put quotes around it: "[lst_Status]"
It can't pass the text string to the function reading the list field selection (which is expecting a control or variant)
I have tried absolutely everything I can think of and don't know how to get past this.
How can you set a control = contents of an array field?
I want to loop through my list box controls and pull the selections for each.
arrControls(0,1 ) = [lst_Status]
arrControls(1,1 ) = "StatusID"
I need to pass this to a function to read the selections:
fItemSel("Statu sID", [lst_Status])
Which would return (if the user selected id 2 and 3):
"StatusID In(2,3)"
When I don't put "" around the field name: [lst_Status]
It tries to pull the selection instead of the field name.
When I put quotes around it: "[lst_Status]"
It can't pass the text string to the function reading the list field selection (which is expecting a control or variant)
I have tried absolutely everything I can think of and don't know how to get past this.
How can you set a control = contents of an array field?
Comment