Text to number

kowol

Registered User.
Local time
Today, 07:33
Joined
Apr 23, 2012
Messages
16
I have a query in a field has following statement.
Monthly Use: IIf([q_partusage_90]![Qty] Is Null,0,Format([q_partusage_90]![Qty]/3,"#.0"))
But the results shows the number as text.
How to get the result as numbers?

Thanks
 
The Format function returns a string but you can typecast it with CDbl;

Monthly Use: IIf([q_partusage_90]![Qty] Is Null,0,CDbl(Format([q_partusage_90]![Qty]/3,"#.0")))
 
Perfect !

Thanks
 

Users who are viewing this thread

Back
Top Bottom