Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Access Newsgroups
Access General
manually unselecting lists in radio box, listbox etc
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Mr B, post: 1277100"] Luke, Here is another way to manage radio buttons in a frame control: Declare a variable in the "Declarations" area of your form like: Dim bytFrameVal as Byte In the "After Update" event of your frame control use code like this: bytFrameVal = Me.NameOfYourFrameControl In the "Mouse Up" event of each option button control in the frame control use code like this: If bytFrameVal = 1 Then 'clear the previously selected value Me.NameOfYourFrameControl = 0 'reset the variable so an option can be selected bytFrameVal = 0 End If If you use this type of coding for your frame controls, if a user clicks a radio button that is the currently selected option for the frame control, the frame control is set to zero, thus clearing the selected radio button but still allowing the user to make any selection from the group. Also be aware that using this method, if your applicaiton requires that a selection be made from your frame control, you will have to also have code that will check to be sure that the value of your frame control is not still zero before allowing users to save the current record. This method takes a little coding but is quite effective for clearing selections. This does not help with the other types of controls in your OP. -- HTH Mr B askdoctoraccess dot com [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Access Newsgroups
Access General
manually unselecting lists in radio box, listbox etc
Top