I want to create option buttons for the entire alphabet but I can only have a maximum of 20, so I have 2 sets of 13, but they work independantly. Can I have it so that if I select a button from set 1, that all of set 2 will turn off and vise-versa?
![]() |
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 |
-
Making 2 option sets work as one (Access 2003 winxp sp2)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Making 2 option sets work as one (Access 2003 winxp sp2)
- This topic has 9 replies, 5 voices, and was last updated 19 years, 6 months ago.
Viewing 1 reply threadAuthorReplies-
WScharlotte
AskWoody Lounger -
Weyrman
AskWoody LoungerNovember 28, 2005 at 3:39 am #987175Thankyou Charlotte,
I was thinking along those lines while waiting for a reply. I want the button to filter a listbox with all the names starting with that letter from a bound table.
I know I would have been stuck for a while on the call command as I would not have remembered to put the letter in quotes. I think I should use a function call like that to set an SQL source for the listbox and then requery the form to refresh the listbox. Am I on the right path? -
WSHansV
AskWoody Lounger
-
-
-
WSMarkD
AskWoody LoungerNovember 29, 2005 at 2:20 am #987339(Edited by MarkD on 28-Nov-05 22:20. Replaced attachment with revised demo file.)
Note – just because the socalled wizard only allows you to create 20 option buttons, it doesn’t mean you cannot add additional buttons “manually” (drag from Toolbox on top of the option group frame). See att’d demo file for an example. It is similar to the other samples posted, only uses 27 option buttons (alphabet plus an “All” option) to filter list. Arrow keys can be used to navigate within option group. The query that populates listbox uses “Like” criteria as a “filter”, referencing a textbox on form whose value is reset when option group is updated. In actual use you may want to hide the textbox from users – it’s visible here for demo purposes. See demo file to see how it works. BTW, as noted in previous replies, command buttons are also a good (maybe better) way to do this.
PS – Another option is to use Toggle buttons instead of Option buttons. Because toggle buttons have a “depressed” appearance may be best choice? See att’d (revised) demo file, added Option Group of toggle buttons (footer) (“synchronized” with the option buttons (header)).
HTH
-
Weyrman
AskWoody LoungerNovember 29, 2005 at 11:44 am #987423Thanks guys for all the input. Hans, I have basically gone with your idea, using 26 command buttons. I had actually got most of it set up so it was good to see that I was on the right track. I now have that part of the form working fine. An option button to choose male or female, alphabet cmd buttons to show first names starting with that letter. Depending on an a toggle button, double clicking a name will either register childID and date to another table (yet to be created) or open the Child form to edit details.
Another thing I want to do is to populate the listbox with the names of all the reports in the database. I will have a command button that changes the list contents to all reports, with double clicking on a report name causing it to run. How can I do this?
I have included my work in progress if anyone is interested in having a look and any corrections in method would be greatly appreciated.
-
WSHansV
AskWoody LoungerNovember 29, 2005 at 12:21 pm #987429I would use a different form, or at least a different list box, say lstReports, to list the reports. You can set its Row Source to
SELECT Name FROM MSysObjects WHERE Type=-32764
In the On Dbl Click event:
Private Sub lstReports_DblClick(Cancel As Integer)
DoCmd.OpenReport Me.lstReports, acViewPreview
End SubIf you want to use the existing lstNames, you could use this instruction:
Me.lstNames.RowSource = “SELECT Null, Name FROM MSysObjects WHERE Type=-32764”
The Null is for the hidden first column of the list box.
-
WSJudyJones
AskWoody Lounger -
WSHansV
AskWoody LoungerDecember 7, 2005 at 12:17 am #987461I wouldn’t use the After Update event of the list box – if the user would use the keyboard to select a report by moving up or down the list, each report would be printed in turn. For a list box, the On Dbl Click event is more suitable, or the On Click event of a separate command button. See the code in my previous reply in this thread. To print directly instead of previewing, omit the
, acViewPreview
at the end of the instruction. -
WSJudyJones
AskWoody Lounger
-
-
-
-
Viewing 1 reply thread -

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
-
National scam day
by
Susan Bradley
15 minutes ago -
macOS Tahoe 26 the end of the road for Intel Macs, OCLP, Hackintosh
by
Alex5723
14 hours, 12 minutes ago -
Cyberattack on some Washington Post journalists’ email accounts
by
Bob99
15 hours, 32 minutes ago -
Tools to support internet discussions
by
Kathy Stevens
22 hours, 22 minutes ago -
How get Group Policy to allow specific Driver to download?
by
Tex265
6 hours, 38 minutes ago -
AI is good sometimes
by
Susan Bradley
22 hours, 44 minutes ago -
Mozilla quietly tests Perplexity AI as a New Firefox Search Option
by
Alex5723
12 hours, 47 minutes ago -
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
1 day, 23 hours ago -
June KB5060842 update broke DHCP server service
by
Alex5723
1 day, 21 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
2 days, 1 hour ago -
Excessive security alerts
by
WSSebastian42
16 hours, 24 minutes ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
2 days, 11 hours ago -
Ben’s excellent adventure with Linux
by
Ben Myers
4 hours, 13 minutes ago -
Seconds are back in Windows 10!
by
Susan Bradley
1 day, 22 hours ago -
WebBrowserPassView — Take inventory of your stored passwords
by
Deanna McElveen
15 hours, 51 minutes ago -
OS news from WWDC 2025
by
Will Fastie
1 hour, 57 minutes ago -
Need help with graphics…
by
WSBatBytes
1 day, 6 hours ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
3 days, 2 hours ago -
Totally remove or disable BitLocker
by
CWBillow
2 days, 1 hour ago -
Windows 10 gets 6 years of ESU?
by
n0ads
2 days, 4 hours ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
3 days, 13 hours ago -
Search Forums only bring up my posts?
by
Deo
21 hours, 57 minutes ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
4 days, 1 hour ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
5 hours, 10 minutes ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
4 days, 1 hour ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
4 days, 11 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
4 days, 12 hours ago -
Disengage Bitlocker
by
CWBillow
4 days, 2 hours ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
4 days, 14 hours ago -
New Win 11 Pro Geekom Setup questions
by
Deo
21 hours, 46 minutes 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.