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.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
3 hours, 52 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
3 hours, 15 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
2 hours, 26 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
2 hours, 35 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
3 hours, 18 minutes ago -
Rufus is available from the MSFT Store
by
PL1
47 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 3 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
10 hours, 3 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
6 hours, 14 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
23 hours, 23 minutes ago -
Office gets current release
by
Susan Bradley
1 day, 2 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 16 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 16 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 2 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 5 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 5 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 5 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 6 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 18 hours ago -
Enabling Secureboot
by
ITguy
3 days, 1 hour ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 14 hours ago -
No more rounded corners??
by
CWBillow
3 days, 10 hours ago -
Android 15 and IPV6
by
Win7and10
3 days ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 2 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 5 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
4 days ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 12 hours ago -
May preview updates
by
Susan Bradley
4 days ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 15 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.