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

whats wrong with this calculation!!

Status
Not open for further replies.

chevyimpala

Programmer
Dec 19, 2003
37
US
I have this report called performance, and I have a column in my query with this calculation:

Sum Of Size: IIf([Current Pos]<>0,0,Sum(IIf([Curr]=&quot;EUR&quot; Or [Curr]=&quot;GBP&quot; Or [Curr]=&quot;EUR/JPY&quot; Or [Curr]=&quot;EUR/GBP&quot;,[Size]*-1*[Rate],IIf([Curr]=&quot;CHF&quot; Or [Curr]=&quot;JPY&quot;,[Size]*-1/[Rate]))))

now why is it that when I run it in my report called currency with the same cal. I get a totaly different number in my performance report.
The performance report query is running as a group by and the currency is a select.

thx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top