K
Kevin Sprinkel
I am simulating an Excel spreadsheet, wherein the user may
enter a number or a formula into a textbox on a continuous
form. The adjacent cell, txtResult, calculates the
result. Its control source is:
=Eval(Nz([txtFormula]))
The BeforeUpdate event of txtFormula assures that a valid
formula has been entered.
Everything works fine, except that before a formula has
been entered in a new record, txtResult
displays "#Error". I don't understand why--doesn't the Nz
call convert a null to zero? I would therefore expect
txtResult to display zero.
Someone, please let me know where I've gone astray.
TIA
Kevin Sprinkel
enter a number or a formula into a textbox on a continuous
form. The adjacent cell, txtResult, calculates the
result. Its control source is:
=Eval(Nz([txtFormula]))
The BeforeUpdate event of txtFormula assures that a valid
formula has been entered.
Everything works fine, except that before a formula has
been entered in a new record, txtResult
displays "#Error". I don't understand why--doesn't the Nz
call convert a null to zero? I would therefore expect
txtResult to display zero.
Someone, please let me know where I've gone astray.
TIA
Kevin Sprinkel