Actually, Graham nailed it.
I put a calculation in LastSubmitted and was trying to populate the day
after in the "open" event. Forgetting that the value isn't even there until
after the form has opened.
What I did instead of DoEvents or any other thing is that I made sure the
calculations happened altogether. I did that by puting what I used to have
in LastSubmitted in the Open event.
like this:
Me.LastSubmitted = DMax("[TurnInToAcct]", "qryJobLog")
Me.StartDate = DateAdd("d", 1, DMax("[TurnInToAcct]", "qryJobLog"))
Me.EndDate = Format(Now(), "mm/dd/yyyy")
Thanks for your help.
Wayne Morgan said:
What data type is StartDate?
--
Wayne Morgan
MS Access MVP
jonefer said:
"Last submitted" is based on a formula from a query recordset
=Max([TurnInToAcct])
[TurnInToAcct] is a date
I tried the "#" & me.lastsubmitted & "#"
but still get a type mismatch error