Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My Currency Format Control Rounds Down

Status
Not open for further replies.

Drenda

Programmer
Sep 1, 2007
85
GB
Can anyone help

I have a control called total cost on my form which has a currency format and displays a calculated result based on two other controls on the same form named quantity and unit cost

I have a macro which sets the value of total cost through

quantity * unit cost

The problem is that no matter what I do the result rounds down and I cannot seem to resolve

So for example if I have a quantity of 2 and unit cost of £1.32 the result should be £2.64 but I get a result of £2.00. I have tried setting decimal places to 2 and auto but it still does not work

Any help would be appreciated
 

Right click Total Cost, select Properties, on Data tab put this =CCur([quantity]*[unit cost]) to the Control Source
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top