B
BobV
Group:
Is there a Minimum Function in Access VBA, like there is in Excel, to
determine the smaller of several variables? In Excel, the function is
expressed as =MIN(value1, value2, value3,...).
I know that there is a DMin function in Access VBA that will determine the
smallest value in a field, but this is not what I am trying to do. I am just
trying to write a VBA statement that will find the smaller of several
variables and then set another variable equal to the smallest, for example:
varBonus=Min(varCalc1, varCalc2, varCalc3)
Your help on how to do this will be greatly appreciated.
Thanks,
BobV
Is there a Minimum Function in Access VBA, like there is in Excel, to
determine the smaller of several variables? In Excel, the function is
expressed as =MIN(value1, value2, value3,...).
I know that there is a DMin function in Access VBA that will determine the
smallest value in a field, but this is not what I am trying to do. I am just
trying to write a VBA statement that will find the smaller of several
variables and then set another variable equal to the smallest, for example:
varBonus=Min(varCalc1, varCalc2, varCalc3)
Your help on how to do this will be greatly appreciated.
Thanks,
BobV