![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have problem of formating numbers on the MS Access report. For example, I would like to format: 1) 25,000,000 result ---> 25M 2) 8,200,000 result ---> 8.2M 3) 234,000 result ----> 234K would someone help me out on these? Is it possible to format & reflect these different results on one field? Thanks so much in advance!! |
#3
| |||
| |||
|
|
Access doesn't offer that sort of formatting. You'll have to write a custom function and use it. Something like: Function MyFormat(InputValue As Long) As String If InputValue > 1000000 Then MyFormat = InputValue / 1000000 & "M" ElseIf InputValue > 1000 Then MyFormat = InputValue / 1000 & "K" Else MyFormat = InputValue End If End Function |
![]() |
| Thread Tools | |
| Display Modes | |
| |