Ramnik
Registered User.
- Local time
- Today, 20:06
- Joined
- Jul 12, 2012
- Messages
- 145
Hello Everyone,
I have a data entry form which have a date field.
This field retains the existing date after the record is saved with vba after update event.
Private Sub Form_AfterUpdate()
Me.ProductionDate.DefaultValue = Chr(35) & Me.ProductionDate.Value & Chr(35)
End Sub
Almost after a year of perfect working i am facing a problem.
When i save the record , in date field my date and month values are reversed if date is between 1-12.although my database stores perfectly valid date. for example
if date is "10-09-2014" (dd-mm-yyyy)
after saving form date field becomes "09-10-2014".
but if date is "13-09-2014" The date form field retains this value .
Moreover in one system this still works fine, but in other this problem occurs.
Please help
Thanks
I have a data entry form which have a date field.
This field retains the existing date after the record is saved with vba after update event.
Private Sub Form_AfterUpdate()
Me.ProductionDate.DefaultValue = Chr(35) & Me.ProductionDate.Value & Chr(35)
End Sub
Almost after a year of perfect working i am facing a problem.
When i save the record , in date field my date and month values are reversed if date is between 1-12.although my database stores perfectly valid date. for example
if date is "10-09-2014" (dd-mm-yyyy)
after saving form date field becomes "09-10-2014".
but if date is "13-09-2014" The date form field retains this value .
Moreover in one system this still works fine, but in other this problem occurs.
Please help
Thanks