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.
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=332
Printed Date: 28 Mar 2024 at 3:35pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


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, http://www.rogersaccesslibrary.com/whydonations.htm - 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.
 
Download
Access 97 (33 KB):
http://www.rogersaccesslibrary.com/forum/uploads/5/ListBoxExcludeOnClick97.zip - uploads/5/ListBoxExcludeOnClick97.zip
Access 2000 DAO (40 KB): http://www.rogersaccesslibrary.com/forum/uploads/5/ListBoxExcludeOnClick2k.zip - uploads/5/ListBoxExcludeOnClick2k.zip



-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net