VBA code for form

M

marc

I have the following code right now and to add something
to it:

Private Sub Corrective_Action_AfterUpdate()
Dim varCorrectiveAction As Variant
If (Not IsNull(varCorrectiveAction)) Then
Me.FirstResponseDate = Now()
End If
Me.Refresh
End Sub

I have a check box called "warfighter." When there is a
check in the box I want the above code to work and add the
date automatically to the firstresponsedate. When there
is no check in the box I don't want the code to work and
add the date in the firstresponsedate field.

Can someone please help me
 
W

Wayne Morgan

Private Sub Corrective_Action_AfterUpdate()
Dim varCorrectiveAction As Variant
If (Not IsNull(varCorrectiveAction)) And Me.WarFighter = True Then
Me.FirstResponseDate = Now()
End If
Me.Refresh
End Sub
 
G

Guest

Thanks for the help
-----Original Message-----
Private Sub Corrective_Action_AfterUpdate()
Dim varCorrectiveAction As Variant
If (Not IsNull(varCorrectiveAction)) And Me.WarFighter = True Then
Me.FirstResponseDate = Now()
End If
Me.Refresh
End Sub

--
Wayne Morgan
Microsoft Access MVP





.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top