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

Compare two numbers show highest number !

Status
Not open for further replies.

neptunes

Technical User
Oct 21, 2002
6
GB
Help! i have a report linked to a query need to create Highest number column

Example: Pur Ord Inv Amount *Highest Number*
£40 £50 £50
£0.00 £30 £30
£20 £0.00 £20

Cheers
 
How are ya neptunes . . .

Just add a [blue]custom field[/blue] in the query and use that in the report:
Code:
[blue][b]HighestNumber[/b]:IIf (Nz([Pur Ord]) > Nz([Inv Amount]),[Pur Ord],[Inv Amount])[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top