Big format problem when exporting a query to excel

R

RobertM

I'm trying to export a query to Excel. Below is an example of the numbers I
want to see:
0.001568257
0.00021853
0.00001812

Here are the values coming up in the excel export
Impact
7.16367843422814E-07
1.01770109708894E-08
8.43835607191398E-10

The project we're using this database for is too fast paced for us to be
able to take the time to update the formatting on the spreadsheet. Any help
is greatly appreciated.
 
L

Lord Kelvan

you need to format the numbers before exporting what you are recieving
in excel are the actual values they are just mathmatically compressed

use something like

format([thefield],"0.00000000")

which will restrict it to 8 decimal places

Regards
Kelvan
 
R

RobertM

Lord Kelvan said:
you need to format the numbers before exporting what you are recieving
in excel are the actual values they are just mathmatically compressed

use something like

format([thefield],"0.00000000")

which will restrict it to 8 decimal places

Regards
Kelvan

I've been trying to add that SQL without any luck. I've added part of the
query below. The feild in question is called "Impact".

I'm sorry to ask this but can you please show me how to add this to make
this work:

[Difference in USD]/[TotShs] AS Impact,
 
J

John Spencer

Perhaps what you want is
Format([Difference in USD]/[TotShs], "0.00000000") AS Impact,


John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
Lord Kelvan said:
you need to format the numbers before exporting what you are recieving
in excel are the actual values they are just mathmatically compressed

use something like

format([thefield],"0.00000000")

which will restrict it to 8 decimal places

Regards
Kelvan

I've been trying to add that SQL without any luck. I've added part of the
query below. The feild in question is called "Impact".

I'm sorry to ask this but can you please show me how to add this to make
this work:

[Difference in USD]/[TotShs] AS Impact,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top