For a normal bound form, no handling is needed.
You create a table with a field of type Number.
You create a form with an option group bound to the Number field.
When the user depresses a toggle button, that becomes the value of the
option group. Access than saves this number into the Number field. No
handling is necessary.
If you need to do something else, please let us know. One fairly common
approach might be to create a small lookup table with 2 fields like this:
SomeID Number
SomeDescrip Text
You can then add a record for each button in your option group. The number
matches the button's OptionValue, and the description explains what this
number means. Doing this, you can include this table in a query, and so the
description onto your report.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
What are you trying to do?
As you found, the option group is the active control, not the buttons it
contains. You can examine the Value of the group, and compare it to the
OptionValue of the buttons if you want to match them.
- Show quoted text -
Thanks for helping,
I have many frame in the form and to udpate my physical table when
user click.
Because there are 10 frames on the form and 30 toggle buttons on the
form, each frame has 3 toggle button.
I just wanted to have a general function to handle all the toggle
button.
I pass the control to the function, but the funciton only recieve
frame name.
Are there any work around for this?
Thanks millions,