Solved

How to set Format and decimal places using ALTER TABLE

Posted on 2014-03-01
2
408 Views
Last Modified: 2014-03-02
Can anyone help with the ALTER TABLE statement to change a fieldsize Long Integer to Fixed Format 2 decimal places.

Thanks in advance.
0
Comment
Question by:CRB1609
2 Comments
 
LVL 36

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39898154
That is not possible.  Integers are whole numbers.  If you want decimal positions, you need to use a data type that supports them.  The most user-friendly choice is Currency which works as long as you only need four decimal places.  Don't confuse the Currency data type with the Currency format.  The Currency data type can be formatted however you want.

Also, formatting doesn't affect how data is stored.  It only affects how data is displayed.  Formatting is for humans.
0
 

Author Closing Comment

by:CRB1609
ID: 39898279
Thanks very much.  I never did understand the difference.  Now I do.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question