G
Guest
Hi all,
I'm trying to calculate the product of a group of textboxes and I keep
getting a #Name? error and I don't understand why. Hopefully someone can
point me in the right direction. I'm using Access 97.
The form is a Continuous Form.
In the Detail area of that form, I have a total of 9 columns (textboxes).
The values of 5 of those columns/textboxes are supplied by the Record Source
of the form (a query). The remaining 4 values are calculated values, mostly
division and multiplication of the various textboxes on that row.
In the Footer of that form, I'm doing a variety of calculations. Mostly
summing,
division, multiplication and one product.
To be clear, by product, I mean I want the values of a column multiplied
together (regardless of the number of rows in total) and the value displayed
in the textbox.
I previously posted a question regarding calculation of Product in Access.
I knew how to do it in Excel (simple, use PRODUCT(x) ) but I didn't know how
to do it in Access. I was told to use =Exp(Sum(Log([fieldname]))) as a
mathematical equivalent.
However, that value as a control source is causing my #Name? error. When I
remove that value, all other textboxes work as usual. When I put that value
in, it causes #Name? errors in all my =Sum Control Source values and #Error
in any calculated Control Source values in the Footer.
The exact code is as follows:
=Exp(Sum(Log([txtYield]))) where txtYield is the name of the textbox in the
Detail area of the form that I want to multiply together.
If anyone has any ideas on how to solve this, I would really appreciate it.
I'm at a complete loss, and I need to find a way to calculate the Product of
this column, to satisfy the data analysis requirements.
If I've left out anything, please let me know, and I'll do my best to clear
things up.
Thanks,
Jay
P.S. I'm out of work in 5 min, so I will not be able to respond to any
suggestions/questions until tomorrow.
I'm trying to calculate the product of a group of textboxes and I keep
getting a #Name? error and I don't understand why. Hopefully someone can
point me in the right direction. I'm using Access 97.
The form is a Continuous Form.
In the Detail area of that form, I have a total of 9 columns (textboxes).
The values of 5 of those columns/textboxes are supplied by the Record Source
of the form (a query). The remaining 4 values are calculated values, mostly
division and multiplication of the various textboxes on that row.
In the Footer of that form, I'm doing a variety of calculations. Mostly
summing,
division, multiplication and one product.
To be clear, by product, I mean I want the values of a column multiplied
together (regardless of the number of rows in total) and the value displayed
in the textbox.
I previously posted a question regarding calculation of Product in Access.
I knew how to do it in Excel (simple, use PRODUCT(x) ) but I didn't know how
to do it in Access. I was told to use =Exp(Sum(Log([fieldname]))) as a
mathematical equivalent.
However, that value as a control source is causing my #Name? error. When I
remove that value, all other textboxes work as usual. When I put that value
in, it causes #Name? errors in all my =Sum Control Source values and #Error
in any calculated Control Source values in the Footer.
The exact code is as follows:
=Exp(Sum(Log([txtYield]))) where txtYield is the name of the textbox in the
Detail area of the form that I want to multiply together.
If anyone has any ideas on how to solve this, I would really appreciate it.
I'm at a complete loss, and I need to find a way to calculate the Product of
this column, to satisfy the data analysis requirements.
If I've left out anything, please let me know, and I'll do my best to clear
things up.
Thanks,
Jay
P.S. I'm out of work in 5 min, so I will not be able to respond to any
suggestions/questions until tomorrow.