It was probably the quotes that fixed the problem.
The Nz() supplies a value to use for null.
Otherwise the SQL statement would not be correct if the text box had no
value.
For example, instead of reading:
SET Month_End_Total = 0 WHERE ...
it would not work if the text box was blank and so the SQL statement became:
SET Month_End_Total = WHERE ...
That issue is #2 in this article:
Common Errors with Null
at:
http://allenbrowne.com/casu-12.html
--
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.
"C_Ascheman" <(E-Mail Removed)> wrote in message
news:7A173100-22C5-4B23-81B3-(E-Mail Removed)...
> Thank you so very very much Allen. You are a godsend. That worked
> perfectly.
> Now maybe I can sleep a little better tonight. If you could do me one more
> favor please I would be very greatful. Can you explain to me why what I
> did
> wasn't working. In your code you have "SET Month_End_Total = " & Nz ...
> what
> is the Nz for. Thats the first time I have ever seen that in any code. I
> now
> see though where I needed to put the ", and how to place them. Once more
> thank you so very much.