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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Access Formula to Crystal Reports

Status
Not open for further replies.

rwn

Technical User
Dec 14, 2002
420
US
I have this Access formula that works fine and trying to convert this formula to use in Crystal Reports. Thanks in Advanced for any assistance.

rate: IIf([Job_Operation_Time]![Act_Run_Hrs]>0,GetEfficiency([Job_Operation]![Run_Method],[Job_Operation]![Run],[Job_Operation]![Efficiency_Pct],[Job_Operation_Time]![Act_Run_Qty],[Job_Operation_Time]![Act_Run_Hrs]),0)
 
It appears you are calling a function, sub-rountine, etc. called GetEfficiency. To get that to work correctly you will have to re-create that routine in Crystal Reports. Of course all of your field names will be change to something like this {Job_Operation.Run_Method}, {Job_Operation.Run}, etc. provided you are using tables instead of a command. Then the if statement might look a little like this.

If({Job_Operation_Time.Act_Run_Hrs}>0 then
GetEfficiency({Job_Operation.Run_Method},{Job_Operation.Run},{Job_Operation.Efficiency_Pct},{Job_Operation_Time.Act_Run_Qty},{Job_Operation_Time.Act_Run_Hrs})
else 0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top