Damian, thanks again. I tried the expression as it appears below and I get a
syntax error. I've tried monkeying with it to no avail. Any ideas.
Thanks, Rob
:
Hi Rob,
You could do it in your query (assuming the fields are available).
Like this:
CLng((nz([fldQT], 0)/1000)/Sqr(nz([fldRR], 0)/1000)*1000) AS [Calc QTc]
Just be careful using nz in the divisor (you can't divide by zero as you
know) - although this isn't an issue above.
Damian.
:
Damian, Thanks for your help.
Do I need to do this thru code in the form, or can I do this in the query?
If in the query, how would I do this? Here is the calculation.
CLng(([fldQT]/1000)/Sqr([fldRR]/1000)*1000) AS [Calc QTc]
:
Hi Rob,
You need to check for null in your fields, either use the nz function or
iif(isnull(FIELD), "", FIELD_CALCULATION)
Hope this helps.
Damian.
:
I have a calculated field in my form. The two fields the calculation is based
on aren't always filled out, and this is ok. The problem is that when the
fields aren't filled out, the calculated field displays "ERROR#".
Is there a way to suppress this message?
Thanks, Rob