Ok, this is what I have. I have a table that basically has about 55 fields in it. Each field is the yes/no data type. The reason I do this is as follows.
I need to create a form where a person can select the states that he/she are interested in transfering to. Now the reson I did what I did was because it was the only way I could figure out how to have them check the box and have it update into a table. Is there a better way that this might be done. This will work fine, but I am just thinking it might be a little much. Surely there is an easier way. Anyway Thanks in advance.
![]() |
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 |
-
Multiple selection, write to table (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Multiple selection, write to table (2000)
- This topic has 16 replies, 6 voices, and was last updated 23 years ago.
AuthorTopicWSNight
AskWoody LoungerMay 23, 2002 at 3:09 pm #371323Viewing 3 reply threadsAuthorReplies-
WSPrestonK
AskWoody Lounger -
WSNight
AskWoody LoungerMay 23, 2002 at 3:23 pm #589909Well normally that would be a good idea. The only thing is there are about 55 choices that can be chosen from. A person can chose 1 or 55 of the options. Now they wouldn’t click all 55 boxes if they would go anywhere because there is an ALL option. The combo box limits the number of choices a person can make and I am unable to do that since my requirements specify that I must give a person the option to chose as many as they want. If you can do that with combo boxes or in another way that isn’t so long then I’d appreciate the help.
-
WSGARYPSWANSON
AskWoody Lounger
-
-
-
WSHansV
AskWoody LoungerMay 23, 2002 at 3:25 pm #589910An alternative is to use several tables:
1. A first table with StateID and State.
2. A second table with UserID and User info.
3. Depending on your preferences:
3A. Either a third table with UserID and StateID representing only those states the user is interested in.
3B. Or a third table with UserID, StateID and a boolean field Interested, containing one record for each possible UserID/StateID combination.In case 3A, you’d create a form with unbound check boxes for all the states. When the user exits or clicks a Save button or something like that, use code to add the appropriate records to the third table.
Or you can have a continuous subform with bound combo boxes, where users can add states selectively.
In case 3B, you can use code to create the records for the user when a new UserID is created. Present the bound check boxes in a continuous subform.
-
WSHansV
AskWoody Lounger
-
-
WSGARYPSWANSON
AskWoody LoungerMay 23, 2002 at 4:13 pm #589937… What would be really neat is to create a map with the check boxes in each state. I actually like your checkbox idea because it gives the flexibility to group the data alphabetically, by region, or other preferences. Since there is no limit to the number of choices, you may need too many combo boxes if you go that route.
-
WSNight
AskWoody LoungerMay 23, 2002 at 4:48 pm #589943It would be neat to create a map, and not to difficult to do so. But unfortunately I don’t have the time or flexability to do all of that before the dead line. You also hit the nose on having to group the states. They are grouped by specific Zones, each state is in a certain zone.
hansV, – This is the setup I have so far. First I have a table that holds for the most part all the important user data: Name, Current zone, Current State, type of transfer wanted, Date file is recieved, date sent for review, amoungst other things. I also have a table that holds the fields for each of the 55 choices. One field for each choice with the Yes/No data type. One problem I’ve run into when creating my forms is somewhat simple, but difficult. For the purpose of design and looks I put the state selections on a different form so that it doesn’t clutter the other form. Now is there a way I can do this so that the state form will recognize the name that was entered on the original for so that if I need to I can print a report that will list the names of the people that want to go to a specific state. Thanks
-
WSHansV
AskWoody LoungerMay 24, 2002 at 10:35 am #590094You can refer to the user on the original form as
Forms![frmOriginal]![UserID]
(adapt names as necessary)You can do this in code behind the states form and in expressions.
I have included a small demo made in Access 97, based on my earlier suggestion of using three tables.
There are just a few users and states to serve as example.
It was put together using wizards mostly, without attention to aesthetics, so it looks ugly.From frmUser you can open two different forms – one uses the combo box approach, the other the multiselect list box approach (the latter is Modal, so you must close it before switching to another user).
I didn’t implement the check box approach – creating many unbound check boxes is not much fun.
There are two reports. One presents the data grouped by user and the other by state.
You’ll have to unzip the database and convert it to Access 2000.
-
WSNight
AskWoody LoungerMay 24, 2002 at 12:20 pm #590123I thank you for the example. I think I will decide to go with a list box. My supervisor gave me the permission to do so just at the end of the day yesturday your example will help me out a lot in determining what I need to do. Now for a different question. Will the format you used work just as well for me if I want to be able to enter in new data into the tables? Also for the recalling of the record, these will be two different forms. So when ever I hit the new entry button a form comes up with blank fields in all the areas, and if I hit Update Record it runs a search by the persons ID number. After the search the another form is supposed to pop up with all the relevant data. Any suggestions on a different approuch or advice on that?
-
WSHansV
AskWoody LoungerMay 24, 2002 at 12:49 pm #590136The example I attached is by no means complete or finished.
For instance, when someone clicks the “Alternative” button in the main form, you should check whether UserID is filled. If not, exit the OnClick routine:
If IsNull([UserID]) Then
MsgBox “You must enter some data first!”, vbInformation
Exit Sub
End IfAnd if the record has been updated, save it before opening the other form:
If Me.Dirty Then
RunCommand acCmdSaveRecord
End IfThe form with the list box can be used to modify existing data. In the code behind the OK button, the records for the UserID selected in the main form are thrown away, then created anew based on the selected items in the list box.
-
-
-
-
-
WSjkeyz
AskWoody Lounger -
WSNight
AskWoody LoungerMay 24, 2002 at 3:55 pm #590192I have been trying to do that for a very long time, that however, just does not seem to work. I looked it up on microsofts website and they said it can be done with a little bit of code, but it is a bad design habit to get into since you won’t be able to query specific data from that field. For example if you have Apples, Oranges, Pears in the field cause you chose those three you won’t be able to look for just apples. At least that is the way I understood it from the article Microsoft putt out.
-
WSjkeyz
AskWoody Lounger -
WSNight
AskWoody LoungerMay 24, 2002 at 5:13 pm #590203http://support.microsoft.com/search/previe…b;en-us;Q210203
that is the link to the article.
-
WScharlotte
AskWoody Lounger -
WSjkeyz
AskWoody LoungerMay 25, 2002 at 4:09 am #590261My end aim is to provide a text file export that lists all the selections a user made in one text string. (The text file will match a format that was set in Filemaker.) For example, if from among the 50 states the user chose MI, CO, and CA, the final entry in the field (and the export) will read “Mi;Co;CA” for that given record.
-
-
-
-
Viewing 3 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
-
Tools to support internet discussions
by
Kathy Stevens
2 hours, 23 minutes ago -
How get Group Policy to allow specific Driver to download?
by
Tex265
44 minutes ago -
AI is good sometimes
by
Susan Bradley
2 hours, 45 minutes ago -
Mozilla quietly tests Perplexity AI as a New Firefox Search Option
by
Alex5723
8 hours, 4 minutes ago -
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
1 day, 3 hours ago -
June KB5060842 update broke DHCP server service
by
Alex5723
1 day, 1 hour ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
1 day, 5 hours ago -
Excessive security alerts
by
WSSebastian42
6 hours, 34 minutes ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
1 day, 15 hours ago -
Ben’s excellent adventure with Linux
by
Ben Myers
44 minutes ago -
Seconds are back in Windows 10!
by
Susan Bradley
1 day, 2 hours ago -
WebBrowserPassView — Take inventory of your stored passwords
by
Deanna McElveen
8 hours, 48 minutes ago -
OS news from WWDC 2025
by
Will Fastie
6 hours, 10 minutes ago -
Need help with graphics…
by
WSBatBytes
10 hours, 24 minutes ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
2 days, 6 hours ago -
Totally remove or disable BitLocker
by
CWBillow
1 day, 5 hours ago -
Windows 10 gets 6 years of ESU?
by
n0ads
1 day, 8 hours ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
2 days, 17 hours ago -
Search Forums only bring up my posts?
by
Deo
1 hour, 58 minutes ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
3 days, 5 hours ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
2 days, 21 hours ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
3 days, 5 hours ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
3 days, 15 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
3 days, 16 hours ago -
Disengage Bitlocker
by
CWBillow
3 days, 6 hours ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
3 days, 18 hours ago -
New Win 11 Pro Geekom Setup questions
by
Deo
1 hour, 47 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
4 days, 2 hours ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
4 days, 2 hours ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
4 days, 6 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.