Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - ListBoxExcludeOnClick.mdb (intermediate)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Please consider donating $1 per sample downloaded, (find out why here)

ListBoxExcludeOnClick.mdb (intermediate)

 Post Reply Post Reply
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP

Joined: 20 Feb 2008
Status: Offline
Points: 261
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: ListBoxExcludeOnClick.mdb (intermediate)
    Posted: 01 Aug 2008 at 2:33am

Please consider donating $1 per sample downloaded, find out why here.


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.
Access 97 (33 KB):
Access 2000 DAO (40 KB): uploads/5/

Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.