Hi All,
Im getting some data form the DB and then trying to convert it to another data type:
price = CCur(CSng(retriveRS("iprice"
* vat))
iprice = 70.87596699
I keep getting a runtime error pointing to CSng.
However when I do CSng(70.87596699) it works.
All I need to do is bring iprice into 2 decimal places ie 70.87
Any help appreciated.
Im getting some data form the DB and then trying to convert it to another data type:
price = CCur(CSng(retriveRS("iprice"
iprice = 70.87596699
I keep getting a runtime error pointing to CSng.
However when I do CSng(70.87596699) it works.
All I need to do is bring iprice into 2 decimal places ie 70.87
Any help appreciated.