Dim draw As Date
If IsNull(draw = Me.cboPartnerId.Column(16)) Then
Me.earlybtn.Enabled = True
Else
Me.earlybtn.Enabled = False
End If
i have null date fields in my database because i opted to not write anything to them in my insert statements.
now i want to check to see if these fields are null, then disable a particular button.
how can i achieve this because my code isnt working.
If IsNull(draw = Me.cboPartnerId.Column(16)) Then
Me.earlybtn.Enabled = True
Else
Me.earlybtn.Enabled = False
End If
i have null date fields in my database because i opted to not write anything to them in my insert statements.
now i want to check to see if these fields are null, then disable a particular button.
how can i achieve this because my code isnt working.