On Fri, 29 Aug 2008 14:27:01 -0700, Ed K wrote:
It was "TotalPaid" at one time. Now, what ever I change the name of the
control to, say "TotalPd", after running the report, the formula for the
control changes itself to include the name of the control (in this example,
=nz([TotalPd],0).
So, you are correct, but now the control formula updates itself to the new
name of the control, and I still get #Error displayed on the report for this
control.
Can you think of something else. BTW, when I just put in =TotalPd, the
report either lists the number in the field, or is blank, relfecting that
there is no data. I need it to display $0.
Thanks again.
:
On Fri, 29 Aug 2008 13:18:00 -0700, Ed K wrote:
Why would the rpt control =nz([TotalPaid],0) produce #Error on one Access
report, but work correctly in another Access report in the same database,
using the identical table of data? In fact, the report in which this
expression produces #Error is a copy of the report in which it works
correctly.
Make sure the NAME of this control is not "TotalPaid".
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Aha!
Sounds like your database's NameAutoCorrect is not turned off.
Access will #error if the name of the control is the same as the name
of a field used in it's control source expression (it gets confused).
A quick fix would be to simply delete this one control and then add a
new UNBOUND countrol. Access will name it something like Text2.
Set it's control source to
=nz([TotalPaid],0)
As this control is not named "TotalPaid" it should work without
#error.
But you may still have future naming problems.
To resolve those future problems ....
Create a new database. Turn off Name Autocorrect.
Tools + Options + General + Name Autocorrect.
Import everything from your existing database.
Change the name of this control.
See Allen Browne's web site first for more information on
NameAutoCorrect.
http://www.allenbrowne.com/bug-03.html
Note... this Name AutoCorrect is not the same as the AutoCorrect
Options (to correct spelling errors) that shows on the Tool menu.