S
Screaming Eagles 101
Hi
when I try to set the amount of decimal places I always get 2, no matter
what.
I have a formulafield in my detailsection, which I connect at runtime :
Dim colfield As FieldObject
colfield = .Section3.ReportObjects("Col1")
'=> Not Working, but no error.... I still get 2 decimals
colfield.FieldFormat.NumericFormat.DecimalPlaces = 0
'this works but not if I do the formatting afterwards, then ERROR
Still, I get 2 decimals when I get no error
rpt.DataDefinition.FormulaFields("Col1").Text = " {tblTest.Col1} "
How can I get this decimal formatting to work ?
--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It's nice to be important, but it's more important to be nice!]
----------------------------------------------------------------
when I try to set the amount of decimal places I always get 2, no matter
what.
I have a formulafield in my detailsection, which I connect at runtime :
Dim colfield As FieldObject
colfield = .Section3.ReportObjects("Col1")
'=> Not Working, but no error.... I still get 2 decimals
colfield.FieldFormat.NumericFormat.DecimalPlaces = 0
'this works but not if I do the formatting afterwards, then ERROR
Still, I get 2 decimals when I get no error
rpt.DataDefinition.FormulaFields("Col1").Text = " {tblTest.Col1} "
How can I get this decimal formatting to work ?
--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It's nice to be important, but it's more important to be nice!]
----------------------------------------------------------------