How to round down

M

Mike Kampff

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

Here is one of the fields in my query
 
B

Brian Camire

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

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

John Spencer (MVP)

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

Top