I
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Displaying Multi-Selections in Access97 Form
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Displaying Multi-Selections in Access97 Form
- This topic has 5 replies, 2 voices, and was last updated 24 years, 4 months ago.
Viewing 0 reply threadsAuthorReplies-
WScharlotte
AskWoody LoungerDecember 30, 2000 at 4:40 pm #508653Are you trying to display selections that were written into a record when that record is current? If so, whether you can or not depends on how you saved the data.
You’re going to have to provide a lot more information in order to get a useful answer. What is the rowsource for the listbox or boxes? How are the selected items stored? How does the program know which data was originally selected? What does “originally created” mean in this context?
-
WSPaul
AskWoody LoungerDecember 30, 2000 at 9:51 pm #508657O.K. Here’s more description of what I’m trying to do.
On the data entry form the multi-select list boxes are like this:
Unbound list box Name: lstNames
Row Source: qryPersonnel (names and unique numbers)They appear on a form where an incident is being recorded and the incident has a unique number, which is the link to the list boxes.
The data is written into a table containing the incident number and the number of each individual involved (tblPersonnelByIncident, containing intIncident and intPersonnel) with an append query. So for each incident there are as many records containing two numbers (incident and person) as there are personnel involved.
In edit mode, I want the form to appear much as it does in add mode, but with the data filled in, of course. That means the individuals selected in add mode should show as selected when the list box appears. How do I read the records in the table and somehow
-
WScharlotte
AskWoody LoungerDecember 31, 2000 at 4:38 pm #508680OK, let me make sure I understand. Your listbox is unbound but you want to display the items that have been selected for the record if they open the form again or navigate off that record and then back, is that right? If that’s the case, you could write a function to retrieve the keys for the records that were selected as an array and then in the current event of the form, loop through that array and use it to set the selected property of the items. However, if you have set only the selected property, the listbox won’t reflect those items in the value. You’ll also need code to clear the listbox when the user moves to a new record.
Multiselect listboxes are input controls, so they aren’t designed to allow easy display. What I usually do is add a textbox or a second listbox and display a concatenated list of values selected in it, kind of like a pick list. But does your form allow them to remove a previously selected employee from the list? That would require still more code to handle. And if they add more selections to that record, you have to decide how you want to handle it.
-
WSPaul
AskWoody LoungerDecember 31, 2000 at 7:51 pm #508683O.K. That helps. I like the idea of a second listbox to display the list of values selected. What I had thought of doing for changes was to provide a change button. From that I’d reset the list, delete the records from the table, then get the new list of selections and put them into the table.
Come to think of it, I’ve seen forms that give the pick list and display the resulting picks in another listbox. That’s an idea that should work here.
Thanks for your suggestions. If I can work out the code for building and using that array of keys, I think that I can figure out the rest of it.
Paul
-
WScharlotte
AskWoody Lounger
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
hibernate activation
by
e_belmont
8 minutes ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
25 minutes ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
3 hours, 30 minutes ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
3 hours, 32 minutes ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
6 hours, 42 minutes ago -
Out of band for Windows 10
by
Susan Bradley
8 hours, 15 minutes ago -
Giving UniGetUi a test run.
by
RetiredGeek
15 hours, 12 minutes ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
22 hours, 50 minutes ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
20 hours, 48 minutes ago -
Auto Time Zone Adjustment
by
wadeer
1 day, 3 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
1 day ago -
Manage your browsing experience with Edge
by
Mary Branscombe
5 hours, 34 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
16 hours, 30 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
24 minutes ago -
Apps included with macOS
by
Will Fastie
20 hours, 25 minutes ago -
Xfinity home internet
by
MrJimPhelps
20 hours, 20 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
20 hours, 18 minutes ago -
Debian 12.11 released
by
Alex5723
2 days ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
2 days, 4 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
1 day, 7 hours ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
11 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
2 days, 21 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
2 days, 11 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
9 hours, 11 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
2 days, 16 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
1 day, 23 hours ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
1 day, 1 hour ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
3 days, 9 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
21 hours, 19 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
2 days, 19 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.