Solved

Toggle Buttons to filter in Access

Posted on 2010-09-15
5
591 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
  • 2
  • 2
5 Comments
 
LVL 30

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 30

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 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 33688044
see this sample db


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

Expert Comment

by:Rey Obrero
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now