Jan 25, 2005 #1 Hueby MIS Oct 20, 2004 321 US Why would I get a error "A field is required here" under my (CDbl({spLaborAct;1.Hourswrk}) part in the following code? Code: sum(CDbl({spLaborAct;1.Hourswrk}), {spLaborAct;1.purchord}) Do I not have my code setup right here?
Why would I get a error "A field is required here" under my (CDbl({spLaborAct;1.Hourswrk}) part in the following code? Code: sum(CDbl({spLaborAct;1.Hourswrk}), {spLaborAct;1.purchord}) Do I not have my code setup right here?
Jan 25, 2005 #2 lbass Technical User Feb 9, 2002 32,816 US Try this in two steps: //{@HrsWk}: cdbl({spLaborAct;1.Hourswrk}) //{@tothrs}: sum({@HrsWk},{spLaborAct;1.purchord}) -LB Upvote 0 Downvote
Try this in two steps: //{@HrsWk}: cdbl({spLaborAct;1.Hourswrk}) //{@tothrs}: sum({@HrsWk},{spLaborAct;1.purchord}) -LB
Jan 25, 2005 Thread starter #3 Hueby MIS Oct 20, 2004 321 US Now I have a "the remaining text does appear to be part of the formula..." highlighted on the 'sum({@HrsWk},{spLaborAct;1.purchord})' code. Can I ask what is with the //{@HrsWk}: and //{@tothrs}: comments? I'm not fully understanding this. Thanks lbass! Upvote 0 Downvote
Now I have a "the remaining text does appear to be part of the formula..." highlighted on the 'sum({@HrsWk},{spLaborAct;1.purchord})' code. Can I ask what is with the //{@HrsWk}: and //{@tothrs}: comments? I'm not fully understanding this. Thanks lbass!
Jan 25, 2005 #4 synapsevampire Programmer Mar 23, 2002 20,180 US LB is suggesting 2 different formulas, not one with 2 formulas within and comments. Create the first, and base the second on the first. -k Upvote 0 Downvote
LB is suggesting 2 different formulas, not one with 2 formulas within and comments. Create the first, and base the second on the first. -k
Jan 25, 2005 #5 lbass Technical User Feb 9, 2002 32,816 US The commented lines were just names I gave to the two different formulas, so that you could see I was using the first formula in the second formula. -LB Upvote 0 Downvote
The commented lines were just names I gave to the two different formulas, so that you could see I was using the first formula in the second formula. -LB