Value over ride in Query, Choose the highest value in Query, need

T

Terry

Hi

I have three field in the Query: A B and C. The table is as low

A B C D
1 2 3 3
2 2 1 2
3 1 1 3

I want an expression in query, that will allow me to have field D, which
choose the highest value among ABC fields. thanks.
 
A

ANDY-N via AccessMonster.com

A work around for this would be using LARGE function in Excel.
 
K

Klatuu

Since this is an Access newsgroup and not an Excel newgroup, I will give you
an Access answer.
Create a calculated field in your query:

d: iif(a > b and a > c, a ,IIf(b > c, b, c))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top