My Assistant
|
|
Mar 11 2009, 09:28 AM
Post
#1
|
|
|
New Member Posts: 10 |
On the form I created there are two Combo Boxes (SelMainWONum and SelServWONum), both are set as Disabled.
If the check box (GasMain) gets checked the SelMainWONum becomes enabled and If the check box (GasService) gets checked the SelServWONum becomes enabled. The problem I am having is when I check either box the combo box is enabled for all records even if a box in a a record is not checked. For example: If I check GasService all the combo boxes for SelServWONum become enabled. If I go to a new record that does not have either box checked and click on a field in that record without checking a box then both SelMainWONum and SelServWONum go Disabled. Any help or suggestions would be greatly appreciated Private Sub Form_Current() If Me.GasService = True Then Me.SelServWONum.Enabled = True Me.SelMainWONum.Enabled = False Me.GasMain = False ElseIf Me.GasMain = True Then Me.SelServWONum.Enabled = False Me.SelMainWONum.Enabled = True Me.GasService = False Else Me.SelServWONum.Enabled = False Me.SelMainWONum.Enabled = False End If End Sub Private Sub GasMain_Click() If Me.GasMain = True Then Me.SelServWONum.Enabled = False Me.SelMainWONum.Enabled = True Me.GasService = False Else Me.SelServWONum.Enabled = False Me.SelMainWONum.Enabled = False End If End Sub Private Sub GasService_Click() If Me.GasService = True Then Me.SelServWONum.Enabled = True Me.SelMainWONum.Enabled = False Me.GasMain = False Else Me.SelServWONum.Enabled = False Me.SelMainWONum.Enabled = False End If End Sub
Attached File(s)
|
|
|
|
Shadwen Check box not work right on form Mar 11 2009, 09:28 AM
DerekC Re: Check box not work right on form Mar 11 2009, 11:29 AM
gemmathehusky Re: Check box not work right on form Mar 11 2009, 08:51 PM
DerekC Re: Check box not work right on form Mar 12 2009, 05:56 AM![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 25th May 2013 - 09:01 PM |