i have an option button, which onClick will enable some textfields. is it possible to disable the previously enabled items when the option button is clicked again(unchecked) ?? and if so, how do i do this ? please and thanks
option group ? whats that ?? im a noob... this is the first time im attempting to use an option buttonHi. Can you post the code for the option group? Does it have an Else part?
May want to look here for some ideas
Set a group of controls as visible/hidden, enabled/disabled or locked/unlocked
The attached utility demonstrates a way of setting the state of a group of controls at the same time using the controls' Tag property. The properties that can be controlled are: .Visible , .Enabled, .Locked However, some control types do not allow all of the properties. For example labels...www.access-programmers.co.uk
Hi. Can you post a screenshot of your form? Sounds like you may have a toggle button instead of an option group.option group ? whats that ?? im a noob... this is the first time im attempting to use an option button
Private Sub orgCheck_Click()
Me.orgname.Enabled = True
Me.orgaddress.Enabled = True
Me.orgtype.Enabled = True
Me.orgcontact.Enabled = True
End Sub
this what i have so far
Hi. Can you post a screenshot of your form? Sounds like you may have a toggle button instead of an option group.
Thanks! Try changing your code to this:
Private Sub orgCheck_Click()
Me.orgname.Enabled = Me.orgCheck
Me.orgaddress.Enabled = Me.orgCheck
Me.orgtype.Enabled = Me.orgCheck
Me.orgcontact.Enabled = Me.orgCheck
End Sub
works like a charm ....Thanks! Try changing your code to this:
If that doesn't work, try moving your code to the AfterUpdate event.Code:Private Sub orgCheck_Click() Me.orgname.Enabled = Me.orgCheck Me.orgaddress.Enabled = Me.orgCheck Me.orgtype.Enabled = Me.orgCheck Me.orgcontact.Enabled = Me.orgCheck End Sub
Glad to hear you got it to work. @MajP and I were happy to assist. Good luck with your project.works like a charm ....
Hi. Try using the Wizard to see. As far as I can remember, an option group only allows for one choice selection at a time. If you want multiple selections, you might just have to use independent checkboxes instead of an option group.Hello,
Would I be able to use the option group for multiple sites on a data entry form where I can select either one ore (more sites)? As a result of the buttons I select I would like the site field in the "Available_At" field in the table updated accordingly? I found a lot of help on option groups but I couldn't find one in which I could select more than one button. Thanks
Hi. May I suggest you start a new thread of your own and post a sample copy of your db with test data.Hello, the table has a filed namely 'Serial_Number' while another field name is 'Stock' (Checkbox). The Serial_Numbers are of the Instruments that we issue to users. When we issue the Serial_Number (instrument) to a user we press the Stock checkbox means the instrument with that particular serial number is currently with that user. The next time when that user returns to us then we issue it to the warehouse and then press the Stock checkbox, means the instrument is now with the currently receiving warehouse.
Now, I want the previously checked Stock checkbox field for the same serial number get unchecked automatically as I press the Stock checkbox for the latest issue record of the same serial number.
Appreciate your help!
I see. Thanks!