ListBoxExcludeOnClick.mdb (intermediate)

Please consider donating $1 per sample downloaded, find out why here
Access 97 (33 KB)

This sample illustrates two ways to remove a value from a bound list box after it has been selected (double-clicked).

1) Uses a temp table into which the values are written. The names are excluded through the use of a Duplicates Query (qryNames)

2) Uses an array of values from which a list is built to be used in a WHERE NOT IN... clause in an SQL statement. This option is good for multi-user environments. ( A message box pops up after each selection only to show how the string is built. It should be removed for production.)

Note: These samples DO NOT manipulate a Value List, but change what appears in a query behind the Row Source.




Need Winzip?

Return to Main Page