Print Page | Close Window

ListBoxExcludeOnClick.mdb (intermediate)

Printed From: Roger's Access Library
Category: Roger's Access Library
Forum Name: Roger's Download Samples
Forum Description: A compendium of Microsoft Access 97 and 2000+ routines, each separated into its own sample database.
Printed Date: 25 Sep 2020 at 2:01am
Software Version: Web Wiz Forums 12.03 -

Topic: ListBoxExcludeOnClick.mdb (intermediate)
Posted By: Roger Carlson
Subject: ListBoxExcludeOnClick.mdb (intermediate)
Date 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): - uploads/5/
Access 2000 DAO (40 KB): - uploads/5/

Consider donating $1 per sample downloaded," rel="nofollow - find out why here .<

Print Page | Close Window

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