Thanks Al for the info...I will play with this....What I was actually going
for, which I apologize as I should have been more specific, is I have a
checkbox that I need to, when checked, insert the current date. I got the
check box to do this, however as long as the checkbox is checked everytime I
open the form it changes the date to the current date. I need the date to
remain the original date (stamped) as to when the checkbox was originally
checked rather than changing to the currect date. Not sure if this helps but
if you have any questions please let me know...
Thanks for all your help...
Randy
AlCamp said:
Randy,
Add two fields to your table for the form.
DOC (short for Date Of Creation) and
DOLE (short for Date Of Last Edit)
In the BeforeUpdate event for the form...
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull([DOC]) Then
DOC = Now()
Else
DOLE = Now()
End If
End Sub
This will tell you when the record was created, and when it was last edited.
hth
Al Camp