Here's a poser! Using Access 2003 SP2
The Control Source for txtMealDate is defined at table level as Date/Time.
When this code is run
the messagebox pops up with the correct DefaultValue. But when I move to a new record, the date entered as default is 12/30/1899. I've deleted the form and re-created it , as well as the table. I've been taking cold medicines that have me kind of spacey, so I figure it's got to be something simple I'm overlooking. I'd appreciate any ideas, as my hair is already sparse and I'm pulling out more by the minute!
Linq ;0)>
The Control Source for txtMealDate is defined at table level as Date/Time.
When this code is run
Code:
Private Sub txtMealDate_AfterUpdate()
txtMealDate.DefaultValue = DateAdd("d", 1, Me.txtMealDate)
MsgBox txtMealDate.DefaultValue
End Sub
Linq ;0)>
Comment