G
Guest
In Access 2000 I have one table containing a field
called 'Function' where the user enters a mathematical
function. A second table contains VarA and
VarB. 'Function' will refer to VarA and VarB within the
function entered.
I want to join the tables in a query and use the Eval
function in a 4th calculated field to evaluate the
contents of the Function text box and produce a result
depending on the contents of the VarA and VarB fields in
the that particular joined record.
My issue is that the Eval function works well to evaluate
simple mathematical expressions entered into the Function
text box but I can't get it to refer in the expression to
the VarA and B fields. If I write a function within the
Eval code it works fine, but if I enter the variable into
the text box for Function it doesn't work - it can't seem
to evaluate the variable. It doesn't recognise the
contents of the text box as containing field names /
variables. Can someone help?
Many thanks,
Brad
Many thanks,
Brad
called 'Function' where the user enters a mathematical
function. A second table contains VarA and
VarB. 'Function' will refer to VarA and VarB within the
function entered.
I want to join the tables in a query and use the Eval
function in a 4th calculated field to evaluate the
contents of the Function text box and produce a result
depending on the contents of the VarA and VarB fields in
the that particular joined record.
My issue is that the Eval function works well to evaluate
simple mathematical expressions entered into the Function
text box but I can't get it to refer in the expression to
the VarA and B fields. If I write a function within the
Eval code it works fine, but if I enter the variable into
the text box for Function it doesn't work - it can't seem
to evaluate the variable. It doesn't recognise the
contents of the text box as containing field names /
variables. Can someone help?
Many thanks,
Brad
Many thanks,
Brad