?
Solved

Toggle Buttons to filter in Access

Posted on 2010-09-15
5
Medium Priority
?
667 Views
Last Modified: 2013-11-28
My question has to do with deconstructing an existing Access 2007 form that works quite well. I believe the form at which I'm looking was created using an automated Wizard, but I can't find any Wizard behind the Curtain pulling any strings.  The form has a series of toggle buttons at the bottom of the form, labeled "A" through "Z", and each time I press on one of the buttons, the main dropdown menu is reset to the first item that begins with the selected letter.  

My question is "How?"  When I look at the form in design mode, I see that none of the toggle buttons have any event associated with them.  They are seemingly disassociated with the dropdown, although I am sarcastic when I say "seemingly" because they obviously do exert influence.  Each Toggle Button has a name "Filter E", "Filter T", etc., and each has an Option Value connected to the placement of that letter in the alphabet ("Filter E" = 5; "Fiter T" = 20; etc.).  Beyond this, I see nothing inherent in the form that does its work, although it clearly is.

For greater clarity, I'm including an image of one of the Toggle buttons and its properties.
Many thanks, ~Peter Ferber


ToggleButton-Properties.bmp
0
Comment
Question by:PeterFrb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 31

Expert Comment

by:hnasr
ID: 33687323
Check the AfterUpdate event of the optionFrame that contains all the toggle buttons.  The frame value = 1, 2, 3, ... for individual toggle buttons.

Code checks the number associated with each toggle button and filters accordingly.

Check the code behind the frame control.
0
 
LVL 31

Expert Comment

by:hnasr
ID: 33687331
See the option value 10 assigned to J, 10th toggle button in the option frame, in the image above.
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 33688044
see this sample db


DB-Q-26476408-ToggleButton.mdb
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 33688103
0
 

Author Closing Comment

by:PeterFrb
ID: 33693696
Thank you for the excellent concrete example of what was happening.  I understand now how toggle buttons are the equivalent of radio buttons, and the frame inherits the value of the toggle button, just as it would a radio button.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question