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!

How to make a report field pick values from different fields

Status
Not open for further replies.

CHTHOMAS

Programmer
Jun 16, 1999
106
AE
<br>
I have got a report which is based on a table with 5 fields. I would like to use only a single field in the<br>
report which should show the highest filled in field for each record. Eg. for a Record if<br>
field1,field2,field3 is filled in, then the report field should show field3. For another record if<br>
field1,field2,field3 are blank and if only field4 is filled in, then the report field should show field4 only. Can<br>
somebody help <br>
Charley
 
Write a public function that takes five parameters, and returns the highest one. Make a query based on the table with the five fields, with a calculated field in the query that calls the function with the five parameters being your fields names.
 
Thanks Silvert. I will have a go at it soon.<br>
Charley
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top