Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CROSS TAB REPORT FOR TOTAL LABOR HRS

Status
Not open for further replies.

AlanApplications

Technical User
Nov 27, 2007
6
US
{labtrans.regularhrs}*{labtrans.payrate} + if {labtrans.otscale}=1.38 then (({labtrans.payrate}*1.38)*{@ot}) + if {labtrans.otscale}=1.78 then ({@dtbillrate}*{@DT})
Well, this report I'm reworking....I mean given to do, doesn't make sense to me. It displays regularhrs, overtime but no dbltime and the total adds everything except the dbltime??? any help would be great....
 
I'm surprised the statement works, if indeed it does work. I'd do it as a set of formula fields. The conditional parts could be
Code:
If {labtrans.otscale}=1.38 
then 
({labtrans.payrate}*1.38)*{@ot}) ) 
else 0
Code:
If {labtrans.otscale}=1.38 
and  {labtrans.otscale}=1.78 
then 
{@dtbillrate}*{@DT}
else 0
The final command could then be
Code:
{labtrans.regularhrs}*{labtrans.payrate} + @SumOne + @SumTwo

I assume you have these figures in a crosstab. I'd suggest you first put them into detail lines. Adjust the crosstab when it's working

It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.

Please don't use block capitals, it counts as SHOUTING.


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top