if and then

tubar

Registered User.
Local time
Today, 13:45
Joined
Jul 13, 2006
Messages
190
i want to create an event procedure when a box is clicked but have had no luck...something like

if [relamped] is true then [date relamped]=date()

can someone give me a code for this
 
In the After Update event of the checkbox (I assume the checkbox itself is named relamped, but if not then change this code to what it should be) put this:

Code:
If Me.relamped Then
   Me.[Date Relamped] = Date
End If

What should happen if they uncheck the box? Does it change the date, remove the date, or what?
 
what would i add if i wanted the date removed if unchecked?
 
Code:
If Me.relamped Then
Me.[Date Relamped] = Date
Else
Me.[Date Relamped] = Null
End If
 

Users who are viewing this thread

Back
Top Bottom