calculate the minimum value of 4 controls

J

JasonM

I know this is a bit of an odd request, but I would like to calculate the
minimum of four distinct values on a report.

I have four fields for each daily record: I1, I2, I3 and I4 there is a value
for each day and I would like to be able to flag the lowest value of the
four for each day on the report.

I have tried a nested iif statement, but that got pretty ugly, and it only
evaluated to the first correct statement... I was hoping to just use a
calculated field without creating a query just for this purpose...

Is this what I am going to have to do? is there a way that I can just do
this in the control on the form? or in the base query?

Any assistance would be appreciated.

Thanks, Jasonm
 
J

JasonM

I figured this one out... I had to impliment a bit of VBA, but my solution
worked quite well. Not nearly as troublesome as I first thought.

Thanks for looking in, and if you are trying to do something similar, give
me a jingle and I will email you the code that I used.

Jm
 

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