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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Currency in query 2

Status
Not open for further replies.

beansmom

Programmer
Aug 24, 2004
35
US
I have looked through previous threads, but can't find an answer to my problem. I have a query with a currency field and a datediff calculted field resulting in a number of days. I need to create a new calculated field that shows currency\days. For example, $32,000\364 days. My query gives me a result of $87.00. It appears to be rounding. I need it to show $87.91. Thanks for any help.
 

Hi,

Try
[tt]
32,000[red]/[/red]364 days
[/tt]


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Duh!!! My only question is why didn't I get an error, instead of a whole number?
 
See arithmetic operators:

\ Operator

Used to divide two numbers and return an integer result.

/ Operator

Used to divide two numbers and return a floating-point result.





Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top