1. The property name is "DefaultValue".
2. The property expects to be assigned a string value.
3. The literal date in the string should have # delimiters.
4. You probably want to skip the assignment if no date was entered.
Try something like this:
Private Sub Form_AfterUpdate()
With Me.IDate
If Not IsNull(.Value) Then
.DefaultValue = Format(.Value, "\#mm/dd/yyyy\#")
End If
End With
End Sub
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"JC Mugs" <jc****@hotmail.com> wrote in message
news:vv************@corp.supernews.com...
I have a form and wish to keep the date entry from form to form.. Found
code that follows that says it should work in an afterupdate event.
Private Sub IDate_AfterUpdate()
Me!IDate.Default = Me!IDate
End Sub
Any suggestions why it does not work and what I need to make it work...