listbox selection to a table

Blkblts

Registered User.
Local time
Today, 15:14
Joined
Jan 21, 2000
Messages
61
I have a questionaire form that basically has y/n answers. but one of the questions could be a multiselectionlist. Such as which of the following have you done. The list may be horseback riding, hiking, snow skiing etc. I would like to capture the anwswers of the questionaire in a table. How do I capture the sections from the list box in a table?

thanks
in advance for your help...
Kim
 
This will work on a multiselect list box linked to a command button
Dim Msg, Style, Title, Response, MyString
List13.SetFocus
Dim intItemNum As Integer, strMsg As String
intItemNum = 0
For intItemNum = 0 To List13.ListCount - 1
If List13.Selected(intItemNum) Then
If strMsg = "" Then
strMsg = (List13.Column(1, intItemNum))
Else
strMsg = strMsg & (List13.Column(1, intItemNum)
End If
End If
Next
Me.Text40 = strMsg
 
Thanks Richie I appreciate your help...

kim
 

Users who are viewing this thread

Back
Top Bottom