Date stamping a form/record

R

Ricter

I'm using a field on the mainform called RecordDate, default value =Now(),
and the mainform's Before_Update event code is

RecordDate = Now()


The situation is that when I move to a new record the above is working fine,
but if I immediately back up one record, the previous date/time is being
updated to the current date/time. Backing up still more records does not
change their date/time.

What is the reason for this please?
 
R

RuralGuy

I'm using a field on the mainform called RecordDate, default value =Now(),
and the mainform's Before_Update event code is

RecordDate = Now()


The situation is that when I move to a new record the above is working fine,
but if I immediately back up one record, the previous date/time is being
updated to the current date/time. Backing up still more records does not
change their date/time.

What is the reason for this please?

If Me.NewRecord Then
RecordDate = Now()
End If
_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
 
R

Ricter

That worked, thanks RuralGuy!


RuralGuy said:
If Me.NewRecord Then
RecordDate = Now()
End If
_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
 
R

RuralGuy

Glad I could help.

That worked, thanks RuralGuy!
_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
 

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