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

Finding out the MIN value between multiple fields

Status
Not open for further replies.

Yazster

Programmer
Sep 20, 2000
175
CA
I have 6 fields:
FIELD1,FIELD2,FIELD3,FIELD4,FIELD5,FIELD6

I want to run an UPDATE query and place into FIELD6 the smalled value between the 5 first fields. The MIN function only accepts one field and returns the smalled number in one field. How would I compare multiple fields in the same record and extract the smallest value?

Any help would be greatly appreciated.

Thanks,
Yazster.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top