473,773 Members | 2,398 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

formatting text nothing seems to fix errors LOL

In this database some of the text boxes need to be/show something like
88.9.

in the table I marked them single, format 00.0 and decimal places 1
on the form I have fixed and 1
if someone types in 88.9 its fine....if they type in 88.99 it gets
displayed as 89.0 but in the table its 88.99 when you click on the
value in the table.

I wanted to do something like ##.# so they had to put in the correct
thing but they might have 5.6 and having to put in a leading 0 was not
an option.

so they are not putting in .99 (this would be a data entry error) and
I assume ignore the last 9

but I need to display and store only single decimal places with no
rounding.
how can I fix this?

Feb 23 '07 #1
4 1806
On Feb 23, 9:10 am, sparks <jstal...@swbel l.netwrote:
In this database some of the text boxes need to be/show something like
88.9.

in the table I marked them single, format 00.0 and decimal places 1
on the form I have fixed and 1
if someone types in 88.9 its fine....if they type in 88.99 it gets
displayed as 89.0 but in the table its 88.99 when you click on the
value in the table.

I wanted to do something like ##.# so they had to put in the correct
thing but they might have 5.6 and having to put in a leading 0 was not
an option.

so they are not putting in .99 (this would be a data entry error) and
I assume ignore the last 9

but I need to display and store only single decimal places with no
rounding.

how can I fix this?
Try using the data type "Currency" instead of "Single". Set the Format
to "Standard" and the Decimal Places to 1.
Feb 23 '07 #2
sparks wrote:
In this database some of the text boxes need to be/show something like
88.9.

in the table I marked them single, format 00.0 and decimal places 1
on the form I have fixed and 1
if someone types in 88.9 its fine....if they type in 88.99 it gets
displayed as 89.0 but in the table its 88.99 when you click on the
value in the table.

I wanted to do something like ##.# so they had to put in the correct
thing but they might have 5.6 and having to put in a leading 0 was not
an option.

so they are not putting in .99 (this would be a data entry error) and
I assume ignore the last 9

but I need to display and store only single decimal places with no
rounding.
how can I fix this?
You might want to consider using an input mask.
Feb 23 '07 #3
Salad I tried 999.9

this works fine....if I put in 33.33 it just cuts if off and makes it
33.3.
the problem I was having with the data entry people was
when you tabbed into the field you see ___._
and they thought that with this 3.1 if you were putting in 5.5 you had
to put in 005.5

I said try it, just type in 5.5....it works but it looks funny.
I said why are you looking at the screen.

I think I convinced them :)
On Fri, 23 Feb 2007 16:40:46 GMT, salad <oi*@vinegar.co mwrote:
>sparks wrote:
>In this database some of the text boxes need to be/show something like
88.9.

in the table I marked them single, format 00.0 and decimal places 1
on the form I have fixed and 1
if someone types in 88.9 its fine....if they type in 88.99 it gets
displayed as 89.0 but in the table its 88.99 when you click on the
value in the table.

I wanted to do something like ##.# so they had to put in the correct
thing but they might have 5.6 and having to put in a leading 0 was not
an option.

so they are not putting in .99 (this would be a data entry error) and
I assume ignore the last 9

but I need to display and store only single decimal places with no
rounding.
how can I fix this?
You might want to consider using an input mask.
Feb 23 '07 #4
sparks wrote:
Salad I tried 999.9

this works fine....if I put in 33.33 it just cuts if off and makes it
33.3.
the problem I was having with the data entry people was
when you tabbed into the field you see ___._
and they thought that with this 3.1 if you were putting in 5.5 you had
to put in 005.5

I said try it, just type in 5.5....it works but it looks funny.
I said why are you looking at the screen.

I think I convinced them :)
The problem you have is the placeholder. In the property sheet go to
the InputMask property and click the triple dots. Edit the list and
create a new input mask record. Accept the default placeholder.

Save the input mask. Now, click Next. It will prompt you for the
placeholder. Select " ". Then hit finish. Here's a sample of mine
9999-99;;" "

You won't get the _, just spaces.

>

On Fri, 23 Feb 2007 16:40:46 GMT, salad <oi*@vinegar.co mwrote:

>>sparks wrote:
>>>In this database some of the text boxes need to be/show something like
88.9.

in the table I marked them single, format 00.0 and decimal places 1
on the form I have fixed and 1
if someone types in 88.9 its fine....if they type in 88.99 it gets
displayed as 89.0 but in the table its 88.99 when you click on the
value in the table.

I wanted to do something like ##.# so they had to put in the correct
thing but they might have 5.6 and having to put in a leading 0 was not
an option.

so they are not putting in .99 (this would be a data entry error) and
I assume ignore the last 9

but I need to display and store only single decimal places with no
rounding.
how can I fix this?

You might want to consider using an input mask.

Feb 24 '07 #5

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

Similar topics

3
1594
by: joe ruggeri | last post by:
Hey All ... I'm developing in ASP/VBScript using DreamweaberMX, w/ an Access 2000 DB as the data source. The source of the data is coming from a third party, which I get as a CSV and import into the database, updating it weekly. Since I have no control over how the data is collected, I'm not sure how to fix this problem, but here it is. This is a database of movies and among the many fields I import is one for the
3
5935
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be terminated by pressing ++ and then terminate the process. I searched the entire internet and found out that there could be two things wrong (both of them are mentioned in the bug list on the access
4
3139
by: Bradley | last post by:
I have an A2000 database in which I have a continuous form with a tick box. There is also a text box with a conditional format that is based on the expression , if it's true then change the background colour. In A2000 it works great, but in A2003 the background doesn't always change and when it does it only changes when the record looses the focus. Any way around this? Is it a bug? Or have they "improved" it?
4
3299
by: cefrancke | last post by:
How does Stephen Lebans make the datasheet row color change by clicking a row's check box field? I cant find any code associated with the form, and I cant tell if you have created a class on the form or not, or even "sub classed" the form or check box. Is there a dll that was pre-loaded? All I can do is guess....
14
4361
by: Scott M. | last post by:
Ok, this is driving me nuts... I am using VS.NET 2003 and trying to take an item out of a row in a loosely-typed dataset and place it in a label as a currency. As it is now, I am getting my unformatted data values (as decimals) just fine, so I know there's not a problem with the data retrieval, just the formatting. I have read that this would work: lblPrice.Text = prodRow.ToString("C");
1
3598
by: Wayne Deleersnyder | last post by:
Hi All, I was going to write and ask if someone could help me fix the formatting of my output for hash values, but I believe I got it right now. But, because I couldn't find any website or tutorial to help me with this issue I figured I'd make a post just in case someone else runs into the same issue. ....
0
1443
mkozma
by: mkozma | last post by:
Hi, I know there are many articles on this topic but none seem to solve my problem. I have migrated a database (in US format) from SQL server 2005 to DB2 v9. The DB2 needs to work woth Australian date formatting (dd/mm/yyyy). I have tried using the BIND command on the database and it runs successfully but nothing seems to change. The display format in my Control Center is always mmm dd, yyyy (eg Aug 16, 2007) and I can't find where to change...
5
1605
by: Bret | last post by:
Does anyone know of a package that can be used to "fix" bad formatting in Python code? I don't mean actual errors, just instances where someone did things that violate the style guide and render the code harder to read. If nothing exists, I'll start working on some sed scripts or something to add spaces back in but I'm hoping someone out there has already done something like this. Thanks!
3
1539
by: =?Utf-8?B?b24tbGluZSBqb3VybmFsIGVkaXRvcg==?= | last post by:
I can't seem to cut-and-paste text, with either .doc or .html formatting, into my .asp web-pages --all the formatting is lost. Is there some code that needs to be added to the page that will tell.asp to leave the formatting the way it is? I thought that the fact that .asp is a MicroSoft product, there would be complete compatibility with "word.doc" text formatting --perhaps I'm wrong about that. Thanks.
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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
10264
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...
1
10039
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8937
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...
1
7461
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5355
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...
3
2851
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.