JLAZ
Registered User.
- Local time
- Today, 08:30
- Joined
- Sep 17, 2003
- Messages
- 24
I'm Using this function to round up
Function roundup(pNum As Double) As Integer
roundup = IIf(pNum > Int(pNum), Int(pNum) + 1, pNum)
End Function
--------------------------------------------------------------------------------
test it from the debug window with
? roundup(15.01)
16
your text-box Control Source would be something like:
= roundup([myField])
I need to have values lower than 4 become 4
what do I need to do
Function roundup(pNum As Double) As Integer
roundup = IIf(pNum > Int(pNum), Int(pNum) + 1, pNum)
End Function
--------------------------------------------------------------------------------
test it from the debug window with
? roundup(15.01)
16
your text-box Control Source would be something like:
= roundup([myField])
I need to have values lower than 4 become 4
what do I need to do