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 / January 2008

Tip: Looking for answers? Try searching our database.

Displaying digits after the decimal point

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amanda - 11 Jan 2008 13:09 GMT
In my table I have a field for quantity. I have the fieldsize set to double
and the decimal places set to 2. However it always rounds to a whole number.
For example when I put in 1.25 it rounds to 1....how can I make it display
the decimal points?
Douglas J. Steele - 11 Jan 2008 14:37 GMT
When you set the Data Type to Number, the default Field Size (bottom
left-hand corner) is set to Long Integer. Long Integers cannot hold decimal
values. Change the field size to Single or Double.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> In my table I have a field for quantity. I have the fieldsize set to
> double
> and the decimal places set to 2. However it always rounds to a whole
> number.
> For example when I put in 1.25 it rounds to 1....how can I make it display
> the decimal points?
Amanda - 11 Jan 2008 17:54 GMT
As I stated in my original message I have the field size set to double.

> When you set the Data Type to Number, the default Field Size (bottom
> left-hand corner) is set to Long Integer. Long Integers cannot hold decimal
[quoted text clipped - 6 lines]
> > For example when I put in 1.25 it rounds to 1....how can I make it display
> > the decimal points?
Dale Fye - 11 Jan 2008 19:03 GMT
Have you checked the Format property?

What happens when you change it to a Decimal rather than Double data type?

Signature

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.

> As I stated in my original message I have the field size set to double.
>
[quoted text clipped - 8 lines]
> > > For example when I put in 1.25 it rounds to 1....how can I make it display
> > > the decimal points?
Daniel Pineault - 11 Jan 2008 14:40 GMT
Does this happen when you are entering your value using a form or directly in
the table?
Signature

Daniel Pineault

> In my table I have a field for quantity. I have the fieldsize set to double
> and the decimal places set to 2. However it always rounds to a whole number.
> For example when I put in 1.25 it rounds to 1....how can I make it display
> the decimal points?
Amanda - 11 Jan 2008 17:53 GMT
It happens in both instances, whether I enter it through a form or through
the table it still does this.

> Does this happen when you are entering your value using a form or directly in
> the table?
[quoted text clipped - 3 lines]
> > For example when I put in 1.25 it rounds to 1....how can I make it display
> > the decimal points?
 
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.