thewiseguy
Registered User.
- Local time
- Today, 21:23
- Joined
- Apr 14, 2004
- Messages
- 56
i'm new to VBA so please go easy on me...
what am i doing wrong with the below code? it keeps bringing up an error message saying "Invalid use of Null".
followed by:
what am i doing wrong with the below code? it keeps bringing up an error message saying "Invalid use of Null".
Code:
Private Sub check1_BeforeUpdate(Cancel As Integer)
Call CheckBox(Me.check1, Me.category1, Me.variable1, Me.crit1a, _
Me.crit1b, Me.crit1c, Me.op1)
End Sub
followed by:
Code:
Public Sub CheckBox(check As String, category As String, variable As String, _
crita As String, critb As String, critc As String, op As String)
If (check = True) Then
category.Enabled = True
variable.Enabled = True
crita.Enabled = True
critb.Enabled = True
critc.Enabled = True
op.Enabled = True
Else
variable.Enabled = False
category.Enabled = False
crita.Enabled = False
critb.Enabled = False
critc.Enabled = False
op.Enabled = False
End If
End Sub