skwilliams
Registered User.
- Local time
- Today, 08:47
- Joined
- Jan 18, 2002
- Messages
- 516
I'm trying to get the Minutes per part using the switch function or minutes per order if parts are zero.
Here's the function:
MPP is filling with #Num! if CurPt, CurOd, and CurMn =0 or CurPt and CurOd =0 and CurMn >0. MPP is null if all the fields are >0.
Can anyone see what's wrong with the switch function?
Here's the function:
Code:
MPP: Switch([CurPt]>0 And [CurOd]=0 And [CurMn]>0,([CurMn]/[CurPt]),[CurOd]>0 And [CurMn]>0 And [CurPt]=0,([CurMn]/[CurOd]),[CurMn]=0,0,[CurPt]=0 And [CurOd]=0 And [CurMn]>0,0)
MPP is filling with #Num! if CurPt, CurOd, and CurMn =0 or CurPt and CurOd =0 and CurMn >0. MPP is null if all the fields are >0.
Can anyone see what's wrong with the switch function?