Apr 28, 2003 #1 spkplf Instructor Joined Apr 28, 2003 Messages 4 Location US Using access 97, what is the easiest way to allow users to select > 1 value from a field on a form?
Apr 28, 2003 1 #2 GHolden Programmer Joined May 28, 2002 Messages 852 Location GB Do you mean you want to select more than one item in a listbox?? If so, in the list box properties, go to the 'Other' tab and set the multi select property. There are two ways to write error-free programs; only the third one works. Upvote 0 Downvote
Do you mean you want to select more than one item in a listbox?? If so, in the list box properties, go to the 'Other' tab and set the multi select property. There are two ways to write error-free programs; only the third one works.
Apr 28, 2003 Thread starter #3 spkplf Instructor Joined Apr 28, 2003 Messages 4 Location US that allows me to select more than 1 from the list box, however it is not saving my selections the next time I open the record. Upvote 0 Downvote
that allows me to select more than 1 from the list box, however it is not saving my selections the next time I open the record.
Apr 29, 2003 #4 GHolden Programmer Joined May 28, 2002 Messages 852 Location GB If you are using a bound form and set the listbox to multi select, the value of the listbox will always be null. If you want to save the values you will need to loop through all the items in the list an write code to save the ones that are selected. If your listbox was called for example lstName you can do this something like... Dim intCount As Integer For intCount = 0 To lstName.ListCount -1 If lstName.Selected(intCount) Then 'code to save record here End If Next intCount There are two ways to write error-free programs; only the third one works. Upvote 0 Downvote
If you are using a bound form and set the listbox to multi select, the value of the listbox will always be null. If you want to save the values you will need to loop through all the items in the list an write code to save the ones that are selected. If your listbox was called for example lstName you can do this something like... Dim intCount As Integer For intCount = 0 To lstName.ListCount -1 If lstName.Selected(intCount) Then 'code to save record here End If Next intCount There are two ways to write error-free programs; only the third one works.