Link to home
Start Free TrialLog in
Avatar of Peter Wilcox
Peter WilcoxFlag for United States of America

asked on

Access Query

Right now I am making a formula

What would the correct formula for Crystal be where add all the fields above and then say I need a filter for this formula where HRO.STATUS = C?
{HRO.TAX_PARTS}+{HRO.NTX_PARTS}+{HRO.TAX_LABOR}+{HRO.NTX_LABOR}+{HRO.TAX_SUBLET}+{HRO.NTX_SUBLET}+{HRO.SUPPLIES}+{HRO.ST}-{HRO.DISP}-{HRO.DISL}-{HRO.DISS}

AND {HRO.STATUS} = "C"

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Shiv
Shiv
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Peter Wilcox

ASKER

I have other formula's on the this report and as soon as I put this formula on the report it eliminates the other two formula's.

They are  attached below.. the formula above and below reference two different tables.
IF {Customer.LAST_VISIT} in DATE (1982, 01, 01) to DATE (2009, 11, 14) THEN COUNT ({Customer.VISITS}) > 0


IF {Customer.LAST_VISIT} in Date (1982, 01, 01) to Date (2009, 11, 21)   THEN COUNT ({Customer.VISITS}) > 0

Open in new window

I added this date filter is that correct?
if {HRO.STATUS} = "C" AND {HRO.PAY_DATE} in DATE (2009, 11, 15) to Date (2009, 11, 21) then

{HRO.TAX_PARTS}+{HRO.NTX_PARTS}+{HRO.TAX_LABOR}+{HRO.NTX_LABOR}+{HRO.TAX_SUBLET}+{HRO.NTX_SUBLET}+{HRO.SUPPLIES}+{HRO.ST}-{HRO.DISP}-{HRO.DISL}-{HRO.DISS}

else 0

Open in new window

yes it works..glad if i cud help