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

Problem with Number displaying correctly

9
My problem is the amount is showing on the screen as 3.15654E+11 I need it to show the actual value which is 315,654,000,000
I already have the field set as double.

When I tried to import the field from a csv file, it created errors when I had the field set as Long Integer. When I changed it to double, I didn't get the errors but got the value of these larger amounts as 3.15654E+11

I tried to update query just those records to the value 315,654,000,000 but got another error.

Help!
Jan 23 '07 #1
9 1451
ADezii
8,834 Expert 8TB
My problem is the amount is showing on the screen as 3.15654E+11 I need it to show the actual value which is 315,654,000,000
I already have the field set as double.

When I tried to import the field from a csv file, it created errors when I had the field set as Long Integer. When I changed it to double, I didn't get the errors but got the value of these larger amounts as 3.15654E+11

I tried to update query just those records to the value 315,654,000,000 but got another error.

Help!
You are probably getting these results because the Format Property for this Numeric (Double) Field is set to Scientific. Explicitly set the Format of this Field to Standard, and its values should display normally. Let me know how you make out.
Jan 24 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
You may need to change the field to Long Integer
Jan 24 '07 #3
ADezii
8,834 Expert 8TB
You may need to change the field to Long Integer
Mary:
315,654,000,000 is well beyond the limits of a Long Integer whose maximum value is somewhere in the area of 2,147,483,647.
Jan 24 '07 #4
NeoPa
32,556 Expert Mod 16PB
Good spot ADezii.
I suspect (I've had similar issues in the past) that the display will revert to scientific anyway for a number that large. In that case Text may be called for.
Rather than guess I tested it and it does work just as specified with a Double so no problem :)
Jan 24 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
Mary:
315,654,000,000 is well beyond the limits of a Long Integer whose maximum value is somewhere in the area of 2,147,483,647.
You are of course right. Sorry I was tired last night when doing this. Good catch.
Jan 24 '07 #6
erajim
9
thanks for all of your help. However, I still can't figure it out. How do you change the format of a field in a union query? I don't see where I can control that as I run the query. Any ideas?
Jan 25 '07 #7
MMcCarthy
14,534 Expert Mod 8TB
thanks for all of your help. However, I still can't figure it out. How do you change the format of a field in a union query? I don't see where I can control that as I run the query. Any ideas?
This is the first time you've mentioned a UNION query. Can you post the query sql and we will see if we can help.
Jan 25 '07 #8
NeoPa
32,556 Expert Mod 16PB
It's not possible to control the output format of fields in a UNION query.
However, it can be done by using subqueries, or even (more easily), by using your UNION query as the source of a normal QueryDef (saved query).
Let me know if you want more info about subqueries in SQL.
Jan 26 '07 #9
NeoPa
32,556 Expert Mod 16PB
SQL Subqueries
While I was thinking about it I thought I'd post a tutorial on subqueries (Subqueries in SQL).
Jan 26 '07 #10

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

Similar topics

2
by: CharitiesOnline | last post by:
Hello, I have set this script up to add paging to a search results page. Which on the first page works fine. I calculates how many pages there should be depending on the number of results returned...
1
by: laurenq uantrell | last post by:
What I'm trying to do is to re-use the values of err.number and err.description after displaying them in a MsgBox. The values seem to auto clear and not be re-usable on a second reference. For...
8
by: Ramesh | last post by:
hi, My C# application displaying correctly in IE, But in netscape all input controls (text box, dblist, drop down list and etc.,) disappered. Only lables are displaying. The value inside the drop...
11
by: Siv | last post by:
Hi, I seem to be having a problem with a DataAdapter against an Access database. My app deletes 3 records runs a da.update(dt) where dt is a data.Datatable. I then proceed to update a list to...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
1
by: JJ | last post by:
I'm trying to create the cut/paste/select all context menu on number of richtextboxes. On the contextmenu.popup handler, I want to find out what control is currently displaying the context menu....
12
by: Patxi | last post by:
This is the first time I try to use cookies, and despite of reading some tutotials, I'm have real trouble to make it work correctly. My cookie reading code is in Master Page. When I click on a...
27
by: Phil | last post by:
I thought it would be nice to display some animated GIFs on some of my forms. I put a PictureBox control on a form, and loaded my GIF file in. It animates, but not properly. It seems very jerky and...
4
by: cheltboy | last post by:
At one of my client sites we noticed a few weeks ago that Listboxes which previously showed "Yes" or "No" are now showing "-1" or "0". The underlying tables and queries are displaying True/False...
2
by: =?Utf-8?B?aGVsZmk=?= | last post by:
Hi all, I have replied with my own questions to an older post entry but after a while I thought it's better to start a new thread based on the previous one. Perhaps with the new thread I will...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
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
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...
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
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,...

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.