A
Aaron G
Access2003
I'm summing several bound fields to an unbound field that has it's format
property to "Percent". However, after running the code, the format is lost
and the number shows up as just a number - no percentage formatting. What
gives?
Here's how I have my code:
Dim stTotal as String
Dim stRound as String
stTotal = Nz([FieldOne],0) + Nz([FieldTwo],0) + etc
stRound = Round (stTotal,4)
Me.Total.Value = stRound
I tried adding:
Me.Total.Format = Percent
but that just seems to change it to a text format (it left justifies).
Any ideas?
TIA
Aaron G
Philadelphia, PA
I'm summing several bound fields to an unbound field that has it's format
property to "Percent". However, after running the code, the format is lost
and the number shows up as just a number - no percentage formatting. What
gives?
Here's how I have my code:
Dim stTotal as String
Dim stRound as String
stTotal = Nz([FieldOne],0) + Nz([FieldTwo],0) + etc
stRound = Round (stTotal,4)
Me.Total.Value = stRound
I tried adding:
Me.Total.Format = Percent
but that just seems to change it to a text format (it left justifies).
Any ideas?
TIA
Aaron G
Philadelphia, PA