Snowflake68
Registered User.
- Local time
- Today, 15:50
- Joined
- May 28, 2014
- Messages
- 464
I have a csv file that I import into a table which contains costs of delivery. I import this table into my application on a regular basis as and when there is a cost change.
The table stores the values as Double and is formated as #.## to 2 decimal places. This shows a value for example as 2.20 but stores it as 2.2 which I understand BUT;
In part of my application I insert the carriage cost into the body of an email and I want the text to say 2.20 not 2.2
I have tried to declare my variables using either of the two methods below but neither work and dont put the trailing zero on.
Can anyone help me please?
The table stores the values as Double and is formated as #.## to 2 decimal places. This shows a value for example as 2.20 but stores it as 2.2 which I understand BUT;
In part of my application I insert the carriage cost into the body of an email and I want the text to say 2.20 not 2.2
I have tried to declare my variables using either of the two methods below but neither work and dont put the trailing zero on.
Code:
Dim strCarriageCost as String
strCarriageCost = Dlookup("CarriageCost","tbl_CustomerCosts")
Code:
Dim strCarriageCost as Double
strCarriageCost = Format(Dlookup("CarriageCost","tbl_CustomerCosts") ,"0.00")
Can anyone help me please?