L
Lucky
I need to create an Access only Round Down function.
This function must round down every number. Therefore,
if the number is 9.031 or 9.99949 the result still must
be 9.
I have been using Excel RoundDown function, but the
queries are becoming rather large and this function slows
down the processing intolerably.
Here is the function I have used:
Function xlRoundDown(dblNumber As Double) As Long
'Round number down using Excel RounDown function
Dim objExcel As Excel.Application
Set objExcel = CreateObject("Excel.Application")
xlRoundDown = objExcel.Application.RoundDown
(dblNumber, 0)
objExcel.Quit
Set objExcel = Nothing
End Function
I am familiar with Microsoft Knowledge Base Article
209996, but it does not do the trick.
Any help is greatly appreciated.
Lucky
This function must round down every number. Therefore,
if the number is 9.031 or 9.99949 the result still must
be 9.
I have been using Excel RoundDown function, but the
queries are becoming rather large and this function slows
down the processing intolerably.
Here is the function I have used:
Function xlRoundDown(dblNumber As Double) As Long
'Round number down using Excel RounDown function
Dim objExcel As Excel.Application
Set objExcel = CreateObject("Excel.Application")
xlRoundDown = objExcel.Application.RoundDown
(dblNumber, 0)
objExcel.Quit
Set objExcel = Nothing
End Function
I am familiar with Microsoft Knowledge Base Article
209996, but it does not do the trick.
Any help is greatly appreciated.
Lucky