Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / February 2008

Tip: Looking for answers? Try searching our database.

how do I assign a variable to a check box or radio control?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tlscorpadmin - 22 Feb 2008 02:29 GMT
I need to assign the value of a radio control or check box when clicked on to
a variable, preferably using the SetTemVar macro.
Allen Browne - 22 Feb 2008 02:39 GMT
Use the AfterUpdate of the control (if it's a stand-alone control), or of
the option group (if it's part of an option group) to SetValue (in a macro)
or assign the value (in code.)

Not sure if it's really a good idea though. Considerations such as:
- You can quite easily read the value from the form.
- Doesn't work in versions of Access before 2007.
- If it's a bound form, the tempvar would not be up to date when you move to
a different record.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>I need to assign the value of a radio control or check box when clicked on
>to
> a variable, preferably using the SetTemVar macro.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.