Getting the wrong date

froggiebeckie

Registered User.
Local time
Today, 04:28
Joined
Oct 11, 2002
Messages
104
Morning all.
I'm struggling with a data entry form.
After entering it one time, I'm trying to get the [Week Ending] date to carry forward to the next record(s), until I change it or have entered all my new records.

Based on info I received here, I put this code into BeforeUpdate property of [Week Ending]:
Private Sub Form_BeforeUpdate(Cancel As Integer)

Me.[Week Ending].DefaultValue = Me.[Week Ending]

End Sub

The date I get now is 12/30/1899.
Any idea why this is happening?

As always, thanks for taking the time,
BeckieO
 
I think you have to pound the date value...

Me.[Week Ending].DefaultValue = "#" & Me.[Week Ending] & "#"

But I'm not sure...

:)
ken
 
That Did IT

That did the trick--Thanks a bunch.

BeckieO:p
 

Users who are viewing this thread

Back
Top Bottom