Thanks very much for your much appreciated efforts, As yes it seems to almost work , the only issue I with it is that the code greys out the blanks
.
Unfortunately, it over my head as whats actually happening with the code you supplied, so I can't figure how to swap the code around, see below for what i am using.
I tried swapping one line for this ..
Code:
'If IsNull(ctl) Or ctl = "" Then IsNullEmpty = False
Code:
Private Sub Command6_Click()
'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Dim ctl As Control
On Error Resume Next
Stop
For Each ctl In Me.Controls
Select Case ctl.ControlType
Case acTextBox, acComboBox
ctl.Enabled = Not IsNullEmpty(ctl)
Case acCheckBox
ctl.Enabled = Not Nz(ctl <> 0, False)
End Select
Next
End Sub
'<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Public Function IsNullEmpty(ctl As Control)
IsNullEmpty = False
If IsNull(ctl) Or ctl = "" Then IsNullEmpty = True
'If IsNull(ctl) Or ctl = "" Then IsNullEmpty = False
End Function