473,394 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Decimal places in calculated fields

I have a database with 8 calculated fields. In each calculated field, I would like to have some values with 0 decimal places, while others would have 1 place, based on the values in the records that make up the calculation. It seems I've been able to address the whole number issue by having all the calculated fields set at Result Type = single, the Format = General Number, and Decimal Place = 1. This seems to automate the values, such that whole numbers show up in the calculated fields in Tables, Queries and Report with no decimal places.

However, this also results in record values that have 1 decimal place in the regular fields showing up with many decimal places in the calculated fields, even though the decimal place setting is 1. Note: this happens primarily in calculated fields that are based on other calculated fields, if that makes difference.

Is there a setting combination for a calculated field that addresses both needs? TIA
May 13 '18 #1
1 2960
NeoPa
32,556 Expert Mod 16PB
ProfBurns:
even though the decimal place setting is 1.
What is this "the decimal place setting" you're referring to? Individual controls and fields have such settings - individually. This isn't something shared across a database. Some items inherit properties from other items to be sure, but you've given no indication in your question to indicate this might be so.

Now, asking your first question is always going to be a little hit & miss. I understand that. That doesn't help me understand what you're asking about though.

Let's start with trying to determine some basic and critical facts. Are you asking about fields that are part of a table, or fields that are in a query? Both can have Format properties. Unfortunately, some calculations make it hard for Access to decide exactly what it's working with so it sometimes doesn't recognise whether to show the property for decimal places.

Once we know what you're trying to do we can certainly lead you in the right direction.
May 13 '18 #2

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

Similar topics

5
by: John Bahran | last post by:
I am trying to use calculated fields in my query but all the results are zero ven when they're not. Please help. Thanks.
2
by: David Nunn | last post by:
Need to preface that I am not much of an Access type. Doing I have several tables that have currency fields, which I run queries against to compare the figures in both. The data is imported from...
3
by: paulquinlan100 | last post by:
Hi I have a couple of calculated fields in a report, i've set the Decimal Places property to 0 and the format to General Number, however when previewing the report it still comes up with a...
4
by: Hank | last post by:
Hello, I'm running Access 2000. I would like to know if its possible to use VBA code to determine how many decimal places are specified for each table field. Currently I loop throught the...
2
by: hunslair | last post by:
This is a really basic question. I am taking a teach yourself beginners course on Access 2003 and have run into a road block on one practice. In a select query, I have created a simple calculation...
6
by: TSGB | last post by:
Hi, I have a Table which has 2 Double, Fixed Number fields to 3 decimal places. This fields are populated as the result of 2 division operations which lead to multiple decimals (the numbers...
4
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...
9
by: matt753 | last post by:
I'm using the Dlookup function to return the value from a table. The value is "0.05", in the table the fields format is number and decimal places set to 2. When I run the dlookup, it returns...
3
by: VivDenham | last post by:
Hi there I have a table - Projects - with 2 fields: Project ID (autonumber) and Project Name. I then have a 2nd table - Decorations Used - which contains 3 fields - Decorations Used Id; Project...
4
by: mcupito | last post by:
In my table, a "Units" field may be 5.5157. In my query, I am trying to take that number and subtract 2 fields from it. The problem is, as soon as that number enters the query it is being...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.