473,606 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to store a decimal number which is not a currency in a table field

17 New Member
Hi,

I have a field in a table the property of which i have set as a general number with 3 decimal places. I want to enter a weight 1.265 tons but the decimal place do not work.The number gets round up. I do not want to set its property as currency

please help me how to do it.
Nov 6 '06 #1
6 12578
VALIS
21 New Member
Hi,

I have a field in a table the property of which i have set as a general number with 3 decimal places. I want to enter a weight 1.265 tons but the decimal place do not work.The number gets round up. I do not want to set its property as currency

please help me how to do it.
Have you changed the SCALE property in the general properties tab?
It needs to e set to 3 to give 3 decimal places.
Nov 6 '06 #2
NeoPa
32,566 Recognized Expert Moderator MVP
Set 'Field Size' property to Double and set 'Format' & 'Decimal Places' properties how you need them.
Nov 6 '06 #3
Killer42
8,435 Recognized Expert Expert
Set 'Field Size' property to Double and set 'Format' & 'Decimal Places' properties how you need them.
Depending on your data, you might also want to consider Single.
Nov 6 '06 #4
mukesh
17 New Member
Have you changed the SCALE property in the general properties tab?
It needs to e set to 3 to give 3 decimal places.
I can't see the SCALE property in the General proeperty tab. Will u explain me step by step
Nov 7 '06 #5
pragatiswain
96 Recognized Expert New Member
1. Open your Access database.
2. Go to the table and (single) Click on the table and click on the design.
3. Click on the datatype of the Field to be changed and select it to be Number.
4. In the General Tab at the bottom, set the field size Double, Format General Number, Decimal Places to 3 or Auto based on your requirements.

Hope this helps
Nov 17 '06 #6
rvsa
1 New Member
Thank you. It worked.
Apr 15 '18 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
12107
by: Ordz | last post by:
I want to write a program that will take a decimal with up to 4 places and convert it to 1/16 ths. I can sort of do that with: n = 375 * 16 / 1000 Print n; "/16" I am planning to use an input box to enter the number with no decimal point. But I don't know how to get a count of the digits in the denominator. I will also round off any results that have a decimal place. I need
13
3134
by: jm | last post by:
I am trying to use datepart to get the real name of the month like "April" or "APR" not just "4." I could not find it in the documentation. Sorry. Thank you.
2
6869
by: RC | last post by:
I am getting input from a digital scale and if the weight on the scale is 9.25 pounds, the input looks like: 009.25LB I need to remove the LB and the leading zeros and have the remaining value as a number (not a text string). The best solution I came up with was to use the Left and Right functions to clean up the string so that it becomes 009.25 BUT it is still a string. I can use the CCur function to convert it to currency and it...
3
6504
by: Brenny | last post by:
Hello I'm developing a project by using access database and there is a table(Table1) and it has a field(ml_mik) this is the decimal field. I'm taking a value from windows form as a decimal variable(for example 12,3 or 12.3). After saving record, value(12,3 or 12.3) is saved as 123, not 12,3 or 12.3... I'm using ADO.NET for processes in the database.
5
2919
by: Roy Gourgi | last post by:
Hi, I am used to working in Visual FoxPro and I would like to be able to create a database and store and retrieve information from it. What is the simplest way to do it and what should I be using as there are many choices to choose from. My database will contain a lot of records. TIA
1
8158
by: Andy Jenkins | last post by:
I'm thinking this ought to be easy (just not for me - lol). Field Price has values like this: 12500 9999 12999 105099 What's happened is that the person who originally populated it neglected to
2
3836
by: pvong | last post by:
Newbie learning VB.Net. I have a simple DataReader and I can grab the info. The data is in numeric format like 123.99 and I want a TextBox to just display it just like that. When I use the code below, I get 123.9900 and I don't know how to get rid of the last 2 zeros. I thought for sure the below would work but it didn't. Thanks in advance. ---------------------- Dim AmountMoney As Decimal = CType(dr.Item("Amount"), Decimal)
4
5365
by: ApexData | last post by:
I have a field set to 1 decimal place in the table definition. I have a textbox bound to the field also set to 1 decimal place. Why can I enter the number 1.57 in the textbox, and this becomes stored in the table as well ? Do I have to use a input mask to stop this ? Thanks
4
1910
by: ChipR | last post by:
I have a table with currency fields set to 2 decimal places. My query has Percent: IIf(=0 Or IsNull(),0,/*100) Even with a balance and estimate with 1 digit decimals I'm getting 13 digits in the Percent field. My form's textbox is set to Fixed and 2 decimal places, but it refuses to behave. I ended up switching all my $ fields from Number to Currency because of this problem. I'm reluctant to put Round() in the query because it's...
0
7959
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
6781
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5466
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3942
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3987
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2451
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1305
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.