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

Trunc Function?

Status
Not open for further replies.

PantoKing

Technical User
Nov 28, 2001
169
GB
Hello,

Can anyone tell me the best way to recreate the Trunc function from Excel in MS Access.
I have a value that I need to truncate (not round!) in Access. I use the excel round function by referencing it using excel.worksheetfunction.round but Trunc doesn't seem to be available in the library. Anyone got any ideas?

Cheers,

Steve. Make things as simple as possible — but no simpler.
 
Check out Int and Fix in the help they return just the integer part of a number (they deal with negative numbers differently is the only difference between the two).

There are two ways to write error-free programs; only the third one works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top