473,385 Members | 1,347 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,385 software developers and data experts.

Decimal Place Format Help

135 100+
I need to change the decimal value in one of my databases. Currently my company uses an ID system with nice whole numbers, i.e. no decimal numbers. Now my boss has this grand scheme to start using decimals. 1.17.1 etc. I can't seem to be able to get my table and form to accept the change??? In my table I currently changed the "Decimal Places" to 2 and the "Format" to "General Number". I then tell it to update format everywhere the ID is used. I have gone into my form based on this table and set the specific field to allow decimal places as well. It won't work. When I enter a number directly into my table, 2.1, the field reverts to 2. ????? What am I doing wrong here? and... is it possible to set the format to allow numbers such as 1.12.4 but not allow any letters?
Thanks for any Help
Jan 2 '09 #1
5 5303
nico5038
3,080 Expert 2GB
Hmm, the problem your boss is introducing is the fact that the code is now "leveled".
In your table you should have a Main, sub level, sub sub level, etc. field or (fully normalized) for each level a row in the table and a pointer to the higher level.

To stay "de-normalized" the only solution is to change the code into a text field. Using a mask or code in a key event could be used to prevent non numeric characters to be entered.

Is the max number of levels known ?

Nic;o)
Jan 2 '09 #2
ADezii
8,834 Expert 8TB
@MyWaterloo
is it possible to set the format to allow numbers such as 1.12.4 but not allow any letters?
The following Input Mask requires Digits in positions 1, 2, 3, and 4, whereas the 5th Digit is not required. You can use this as a starting point:
Expand|Select|Wrap|Line Numbers
  1. 0.00.09
Jan 3 '09 #3
MyWaterloo
135 100+
"Is the max number of levels known ?"
I am not exactly sure what you mean by this question? So i guess, no, the max number of levels is not known.



"The following Input Mask requires Digits in positions 1, 2, 3, and 4, whereas the 5th Digit is not required. You can use this as a starting point:"

0.00.09

I tried implementing the input mask you recommended. I had to change my data type to text instead of number. I assume this is what I was intended to do? I then relly on the input mask to only allow numbers. Correct?
Thanks
Jan 3 '09 #4
ADezii
8,834 Expert 8TB
@MyWaterloo
I tried implementing the input mask you recommended. I had to change my data type to text instead of number. I assume this is what I was intended to do? I then relly on the input mask to only allow numbers. Correct?
That is correct, the Field would have to be defined as Text for this to work.
Jan 3 '09 #5
nico5038
3,080 Expert 2GB
Your code "1.17.1" represents 3 levels:
1 - Main
17 - Sub
1 - SubSub
In general such a leveled code is used for grouping products.
Storing this in three number fields and concatenating them when needed for output is the "normalized" way.

So showing this would give a query field like:
Expand|Select|Wrap|Line Numbers
  1. SELECT Main & "." & Sub & "." & SubSub as LeveledCode, ...
  2. FROM tblX;
Having different fields will allow to check easily for each level value to be valid. E.g. Main can be in the range 1 to 4, etc.
Getting the idea ?

Nic;o)
Jan 3 '09 #6

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

Similar topics

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...
687
by: cody | last post by:
no this is no trollposting and please don't get it wrong but iam very curious why people still use C instead of other languages especially C++. i heard people say C++ is slower than C but i can't...
10
by: Paul Sullivan | last post by:
decimal d; d = 1.1M OR d= (decimal) 1.1 Discussioon
1
by: Ken | last post by:
HI all I would like to round up a double number, for example, 100.689 and round up to 100.6 i know i can do it with Round function. However, it doesn't show the any decimal place if the number...
11
by: MikeY | last post by:
Hi Everyone, I'm trying to extract my pricing from my Access.mdb. Developing WinForm C#. I've read previous posts on the subject, but I'm still confused. In Access my "Price" is of "Currency"...
0
by: pomeroymiles | last post by:
I have a pivotchart which I cause to take a huge list of people's test percentiles and calculate the average for each year. I then display the average above each bar. The problem is that there are...
3
by: kimi | last post by:
hi all, can anyone tell me how to convert a comp-1 floating point number to a decimal in REXX??
2
by: pax | last post by:
Hello there! Here is my problem, in the simplest scenario: - an Access 2000 format database (created with Access 2003) - a simple table that contains one single field defined as Number, Decimal,...
3
by: zgfareed | last post by:
My program converts decimal numbers from to binary and hexadecimal. I am having trouble with my output which is supposed to be in a certain format. Binary needs to be in the format of XXXX XXXX...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.