Bob
I've not been able to determine in which circumstances/conditions the
following happens, but I've had to deal with it:
1. An Access function/expression stops working and throws an error
message (not a consistent one).
2. The expression includes the Me. phrase, but it refers to an object
I created, rather than a property or method of the "Me".
3. I change the expression to "Me! something, and it works!
As I said, inconsistently, but I'm guessing that portions of Access got more
rigorous about how "Me." and "Me!" are interpreted.
Your expression uses "Me.", but refers to objects (textboxes) you created.
I'm guessing that you could use:
Me!tbDayWarn1 = Me!tbServiceDate + Me!tbWarn1
provided you format the tbDayWarn1 to display a date value.
Your code would be a bit more readable and self-documenting if you use the
DateAdd(), as suggested elsethread...
Good luck!
Regards
Jeff Boyce
Microsoft Access MVP
--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.
Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.
You can thank the FTC of the USA for making this disclaimer
possible/necessary.