Creating dynamic text boxes to hold multiple selections from list box (1 Viewer)

lekkala

Registered User.
Local time
Today, 08:30
Joined
Jan 3, 2018
Messages
17
I have a text field column in a table which gets data from a form's list box(multi selection list box). All the selected values from list box are added to the column as comma separated values. Now I need to display each value in a individual text box in a report.
How can I create text boxes dynamically to hold each of the value.
Can someone help me with ideas?
Thank you.
 

Ranman256

Well-known member
Local time
Today, 09:30
Joined
Apr 9, 2015
Messages
4,339
cant you just add them 1 at a time via DBL-click?

Code:
sub lstBox_Dbl_click()
txtBox = txtBox & "," & lstBox
end sub
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 06:30
Joined
Aug 30, 2003
Messages
36,118
I wouldn't create textboxes on the fly, I'd create whatever max number you might need and make them visible as required.
 

Users who are viewing this thread

Top Bottom