Print Page | Close Window

ListBoxSetTableValue.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=331
Printed Date: 28 Mar 2024 at 6:47pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: ListBoxSetTableValue.mdb (intermediate)
Posted By: Roger Carlson
Subject: ListBoxSetTableValue.mdb (intermediate)
Date Posted: 01 Aug 2008 at 2:29am

Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm - find out why here .
 

ListBoxSetTableValue.mdb

This sample illustrates use a list box to update a "Selected" field in a table and also read which items are selected in the table and set those list box items to True.

There is a main form which has a list box which only shows the True items. If you double-click the listbox, another form appears with a list box which holds all the values. In the OnActivate event of this form, there is code which find which items in the table have the BolSelected field set to True, and sets those true in the list box. On saving and exiting, the values in the table are set to match those in the list box.

The important code is in the form: sfrmVacuumForcepsIndications.
 
Download
Access 97 (24 KB):
http://www.rogersaccesslibrary.com/forum/uploads/5/ListBoxSetTableValue97.zip - uploads/5/ListBoxSetTableValue97.zip
Access 2000 DAO (32 KB): http://www.rogersaccesslibrary.com/forum/uploads/5/ListBoxSetTableValue2k.zip - uploads/5/ListBoxSetTableValue2k.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