|
-
May 24th, 2007, 10:46 AM
#1
Thread Starter
PowerPoster
CR 10.2 - Error in formula???
I have a formula in which I'm getting the following error
"A field is required here"
on the highlighted code.
Code:
Dim dblDifference as Double
dblDifference = CDbl({@Difference})
formula = Sum(dblDifference)
-
May 24th, 2007, 04:42 PM
#2
Thread Starter
PowerPoster
Re: CR 10.2 - Error in formula???
Anyone have an idea what's causing this?
thanks,
-
May 24th, 2007, 05:21 PM
#3
Re: CR 10.2 - Error in formula???
Think about it.
If @Difference were = 1
dblDifference would = 1
Sum(dblDifference) would also = 1, so what is the point.
If you are just trying to Sum the @Difference formula.
Formula = Sum(CDBL({@Difference}))
The above still may cause an error depending on the actual @Difference formula.
-
May 24th, 2007, 05:36 PM
#4
Thread Starter
PowerPoster
Re: CR 10.2 - Error in formula???
I already tried your suggestion Bruce and it gave me the same error msg. But here is the formula for @Difference:
Code:
Sum ({tblReport.invoicedAmt}, {tblReport.custNO}) - Sum ({tblReport.advProdTotCost}, {tblReport.custNO})
Both tblReport.invoicedAmt and tblReport.advProdTotCost are defined as Integers.
Last edited by blakemckenna; May 24th, 2007 at 05:41 PM.
Blake
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|