K
Kevin Sprinkel
I recently had trouble aligning numerical fields in
different subreports. Some were values from fields, some
were calculations, and some were calculations that had
been formatted by the function below (to round to
appropriate sig figs depending on the value).
Public Function CurFormat(...)
....
curResult = A
strFormat = "$#,##0;($#,##0)" ;default format
Select Case curResult
...<change strFormat depending on value>...
End Select
CurFormat = Format(curResult, strFormat)
End Function
I discovered that if all values were formatted in a
similar way, all aligned properly, but I don't know why.
Can anyone tell me?
Thank you.
Kevin Sprinkel
different subreports. Some were values from fields, some
were calculations, and some were calculations that had
been formatted by the function below (to round to
appropriate sig figs depending on the value).
Public Function CurFormat(...)
....
curResult = A
strFormat = "$#,##0;($#,##0)" ;default format
Select Case curResult
...<change strFormat depending on value>...
End Select
CurFormat = Format(curResult, strFormat)
End Function
I discovered that if all values were formatted in a
similar way, all aligned properly, but I don't know why.
Can anyone tell me?
Thank you.
Kevin Sprinkel