Hi Mr. Larson. Now that i have spent more time with this I now understand why using the modified code is a good idea. My VBA window is long and clunky (would this inhibit speed and performance?)
What you suggested now makes sense. My question is where do I put this code? I have four checkboxes on my form that activate different fields. Would this go in "after update" for each checkbox?
Re: Check Box to Gray Out Areas
Okay here you go. First I put the word BusOp into the TAG property of each of the controls we want enabled/disabled by the checkbox. That property is found by selecting the control and clicking on the OTHER tab in the properties dialog. Next I modified the form's code to have a new function in it:
Code:
Function SetBusOp() Dim ctl As Control For Each ctl In Me.Controls If ctl.Tag = "BusOp" Then ctl.Enabled = Me.PropBusOwnDIFF End If Next End Function
And then I call that in the checkbox After Update event and in the On Current event:
Code:
SetBusOp
What you suggested now makes sense. My question is where do I put this code? I have four checkboxes on my form that activate different fields. Would this go in "after update" for each checkbox?
Re: Check Box to Gray Out Areas
Okay here you go. First I put the word BusOp into the TAG property of each of the controls we want enabled/disabled by the checkbox. That property is found by selecting the control and clicking on the OTHER tab in the properties dialog. Next I modified the form's code to have a new function in it:
Code:
Function SetBusOp() Dim ctl As Control For Each ctl In Me.Controls If ctl.Tag = "BusOp" Then ctl.Enabled = Me.PropBusOwnDIFF End If Next End Function
And then I call that in the checkbox After Update event and in the On Current event:
Code:
SetBusOp