Afterupdate Code Question

S

scott04

I am using the following code to disable the date field if the yes/no box is
null or false:
Private Sub Combo33_AfterUpdate()
Me.Ctl1st_Date.Enabled = Nz(Me.Combo33, False)
Me.Most_Recent_Date.Enabled = Nz(Me.Combo33, False)
End Sub

What can i place in this code so that it also deletes whatever date was in
this field if it is selected as N or False? Any help is appreciated. Do I
also need to place this in the beforeupdate of the form?
 
S

scott04

Nevermind I just added:
If Me.Combo33 = False Then
Me.Ctl1st_Date = Null
Me.Most_Recent_Date = Null
And it works fine
?
 
Top