Hello,
I've nested the FormatNumber function within my own creation which will be called in the field of a query, however the output never populates trailing zeros.
Function RemoveDecimal(ByVal Price As Long, ByVal NewPrice As Double) As Long
'''I use Price field twice as arguments when calling from query
Price = Price
NewPrice = FormatNumber(NewPrice, 6)
RemoveDecimal = Price & NewPrice
End Function
I've nested the FormatNumber function within my own creation which will be called in the field of a query, however the output never populates trailing zeros.
Function RemoveDecimal(ByVal Price As Long, ByVal NewPrice As Double) As Long
'''I use Price field twice as arguments when calling from query
Price = Price
NewPrice = FormatNumber(NewPrice, 6)
RemoveDecimal = Price & NewPrice
End Function