How to round down

  • Thread starter Thread starter Mike Kampff
  • Start date Start date
M

Mike Kampff

I'm sure this is really simple, but I'm stuck.

Here is one of the fields in my query
 
You might use the Int() function, as in:

Tenure: Int(DateDiff("d",[HireDate],Date())/365)
 
Or use the integer division operator (the reverse slash)
364\365 = 0
365\365 =1
366\365 = 1

Brian said:
You might use the Int() function, as in:

Tenure: Int(DateDiff("d",[HireDate],Date())/365)

Mike Kampff said:
I'm sure this is really simple, but I'm stuck.

Here is one of the fields in my query
-------------------
Tenure: DateDiff("d",[HireDate],Date())/365
-------------------
How do I drop the decimal places off the result? I don't
want it to round up, just drop the decimals.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Round up or down to nearest 5, but not 10 2
age rounding up or down 3
Rounding and appending 2
calculation rounding down 2
Round DOWN in Access 3
calculated field rounding down 2
Query Question 2
Rounding errors 4

Back
Top