I will bet IMPORT1 to IMPORT3 are defined as DOUBLE… and as we all know (or should by now), DOUBLE is not a precise value.
For 4 digit precision, try using CURRENCY datatype instead
[quote=337343:@Francesco Di Lecce]the value in rsTraffico.Field(“Costo”) is correct for me.
My problem is only on report.
can you help me to use OutputFormat with Report?[/quote]
From the Format help page:
// The following example returns the number 3560.3 formatted as $3,560.30
Dim s as String
s=Format(3560.3, "\\$###,##0.00")
The mask \\$###,##0.00 is the instruction for what gets printed. In this case it’s a dollar amount with 2 decimals. For 4 decimals, change it to \\$###,##0.0000. (The Format link above has all the mask info, please read it.)
Just put whatever format mask you want in the OutputField box of the ReportField properties.