ListBoxExcludeOnClick.mdb (intermediate) |
Post Reply |
Author | |
Roger Carlson
Microsoft MVP Joined: 20 Feb 2008 Status: Offline Points: 261 |
Post Options
Thanks(0)
Posted: 01 Aug 2008 at 2:33am |
Please consider donating $1 per sample downloaded, find out why here.
ListBoxExcludeOnClick.mdb 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. |
|
|
|
Sponsored Links | Want a good read? Try The Summer of His Life (available on Amazon!) |
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |