vb123.com.au
The List Boxes in Access 97 have property that allows you to select multiple items in the list box. You will find this property under the Others tag and it is called Multi Select. But if you want to use it, you will now have to write vb that loops through a collection rather than simple pointing to the list box itself. The Access 97 help examples are shown
The following example prints the value of the bound column for each selected row in a Names list box on a Contacts form. To try this example, create the list box and set its BoundColumn property as desired and its MultiSelect property to Simple or Extended. Switch to Form view, select several rows in the listbox, and run the following code:The code that I wrote for a wizard that I am building in Graf-FX is as follows. This example uses information from 2 columns in a list box.
On Error GoTo hide_unhide_exitTry out our popular Access shareware Graf-FX @ http://www.vb123.com/explore
Get Good Help Here
If you need help with a database or
Office programming,
our Professionals could be the answer because we have worked on many
similar solutions
Frontpage Conversions
We have converted vb123.com to Expression Web,
contact us if we can help you move to the latest Microsoft web tool.
About The Editor ~ Contact Us
Garry Robinson writes for a number
of popular computer magazines, is now a book author and has worked on
100+ Access databases. He is based in Sydney, Australia