G
Guest
I have numerous reports with numerous textboxes each and would like to use
VBA in the Format section of the report to make the textboxes gray if they
are null. I'm trying to get around using Conditional formatting on each
textbox.
I thought I could use something like:
Dim ctl As Control
Dim lngColor As Long
lngColor = vbGrey
For Each ctl In Me.Section(0).Controls
If IsNull(ctl) Then
Clt.ForeColor = lngColor
Next
Will this work?
VBA in the Format section of the report to make the textboxes gray if they
are null. I'm trying to get around using Conditional formatting on each
textbox.
I thought I could use something like:
Dim ctl As Control
Dim lngColor As Long
lngColor = vbGrey
For Each ctl In Me.Section(0).Controls
If IsNull(ctl) Then
Clt.ForeColor = lngColor
Next
Will this work?