Hi all,
I’m calculating labor cost for a generic inquiry using this:
=Round( CInt( [AMProdTotal.ActualLaborTime] ) /60.00 , 2 ) * 47.33
But, I would like change that default rate if the following user names are true:
=iif(InStr([CreatedByUser.Username], 'barcode')>0 or InStr([CreatedByUser.Username], 'slitter')>0, Cint([AMMTran.LaborTime]), 0)
Is there a way to say, labor rate is 94.66 if username contains “X” or “Y”, otherwise labor rate is 47.33?
Also, I’m trying to calculate the labor time here based on username, converting the minutes into hours, but I have this messed up! (probably the parentheses!) Any ideas?
Thanks for any input!