Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2008

Tip: Looking for answers? Try searching our database.

SQL Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Welthey - 19 May 2008 14:18 GMT
I currently have a table in SQL.  One of my fields is a MONEY data type
field.  Is there anyway to drop off anything after the decimal point and make
the values in there whole numbers?
Eric - 19 May 2008 14:39 GMT
You could try the Round Function:

Dim MyVar, pi
pi = 3.14159
MyVar = Round(pi, 2) ' MyVar contains 3.14.

Use 0 to make the number 3

> I currently have a table in SQL.  One of my fields is a MONEY data type
> field.  Is there anyway to drop off anything after the decimal point and make
> the values in there whole numbers?
BruceM - 19 May 2008 15:08 GMT
It depends on what exactly you are trying to do.  Assuming you mean it is a
Currency field, you can change the Decimal Places (in table design view) to
0.  This will round the number.  If you want to allow users to enter exact
decimal values, but display only the whole dollar, you can use code or
formatting on the form or report.  If you want the integer portion of the
number regardless of the decimal value, try the Int function.

>I currently have a table in SQL.  One of my fields is a MONEY data type
> field.  Is there anyway to drop off anything after the decimal point and
> make
> the values in there whole numbers?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.