473,503 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

decimal point problem

I have a app that handles our milk business.

The units are recorded as full numbers in the sales table.
We have started to handle eggs which are sold by the dozen and sometimes a
customer wants 3.5 dozen.

I want the milk numbers to continue to display without a decimal point but
where half doz are involved display as 3.5

Hope that makes sense
TIA
David B

Aug 30 '06 #1
2 1903
In table design, this Quantity field will be data type Number. In the lower
pane, the Field Size should be Double so it accepts fractional values. Make
sure there is nothing in the Format property. It should then work as
requested.

If you have a form, you may have to clear the Format property of the text
box also.

(Setting the Format to General Number should have the same result too.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"David B" <da***@marleycote.fsnet.co.ukwrote in message
news:Ot******************************@bt.com...
>I have a app that handles our milk business.

The units are recorded as full numbers in the sales table.
We have started to handle eggs which are sold by the dozen and sometimes a
customer wants 3.5 dozen.

I want the milk numbers to continue to display without a decimal point but
where half doz are involved display as 3.5

Hope that makes sense
TIA
David B

Aug 30 '06 #2
Many thanks for the prompt reply
David B

"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:44***********************@per-qv1-newsreader-01.iinet.net.au...
In table design, this Quantity field will be data type Number. In the
lower pane, the Field Size should be Double so it accepts fractional
values. Make sure there is nothing in the Format property. It should then
work as requested.

If you have a form, you may have to clear the Format property of the text
box also.

(Setting the Format to General Number should have the same result too.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"David B" <da***@marleycote.fsnet.co.ukwrote in message
news:Ot******************************@bt.com...
>>I have a app that handles our milk business.

The units are recorded as full numbers in the sales table.
We have started to handle eggs which are sold by the dozen and sometimes
a
customer wants 3.5 dozen.

I want the milk numbers to continue to display without a decimal point
but
where half doz are involved display as 3.5

Hope that makes sense
TIA
David B


Aug 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
28254
by: RichW | last post by:
Hi, I'm writing a program that has got a bit of maths in it. I perform a division and then end up with something like 2.50, or 3.87, or 4.9975 (ie. y.12345). I need to get rid of anything in...
7
1960
by: Hiten | last post by:
Hi please check ffollowing conditon variable float1 and float2 holds user entered value..... Answer=float1 * float2; //output must be 8.5 output must to be 8.5 but it has 8.500002, i am...
6
1667
by: Larry Lard | last post by:
I am trying to apply the following easy-to-state formatting rule to display a number: - If the number is positive or negative, display it in the 'default' way - If the number is zero, the...
18
12151
by: Kuljit | last post by:
I am doing Engineering(B.Tech) in Computer Science. I have a question for which i am struggling to write a C code(program). It struck me when we were being taught about a program which counts the...
7
23668
by: Stefantastisk | last post by:
Hey there, Anyone knows a clever method for knowing the length of the digit after a decimal point in a standard C# decimal value, WITHOUT use of any string formatting. Example: 5231,12231 <-...
8
7932
by: iDaz | last post by:
hi everyone! i've searched many sites including this one for the answer to me question, but i'm still in a bit of trouble. this is my current code... Private Sub unitPriceKeyPress(ByVal sender...
1
3458
by: Shailja | last post by:
Hi, How to do alignment of decimal point in Crystal Report? When I open the crystal report, numbers display in following manner: 100.16 10.16 Instead, if second number consists of 2 digits...
3
2742
by: Dave Griffiths | last post by:
Hi All Using VB 2005 I am writing a program that will be used on machines which have different locales (English, Norwegian and Swedish) I am restricting textbox input using keypress to just...
2
18394
by: KiP.Kolodziejczyk | last post by:
I 'd like to insert (via "bulk insert") between 10-20 files (about 300MB each) into one table. The problem is that in input files decimal point is written as "," and without leading zeros (i.e.:...
0
7202
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
7280
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,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
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...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3167
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...
0
380
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...

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.