MS Word 2007 Mail Merge number formatting avoiding scientific notation.

Hi EE,

I have set-up a Word 2007 mail merge of data stored in a Access 2007 DB that has been populated from a Excel 2007 spreadsheet.  Several columns in the excel spreadsheet have a persistent formatting issue that makes the values in these columns appear as scientific notation on the mail merge.  I have tried reformatting the spreadsheet to text, tried pasting just values into a new sheet and I have saved the spreadsheet as tab delimited text file and then imported into Access but the numerical formatting persists in the access db and then onto the mail merge.  Some cells in these columns have text which is not imported into access with the numerical data.  It is quite unusual since other columns containing similar data behave normally as import text.  I have also tried field switching on the mail merge end but there is such variance in the numbers that the formatting looks strange (26.00000 vs 0.00045).  Will I need a complicated field switch using IF statements to determine what decimal place I need to format to and then display that number of digits?

Thanks, Runnuger
runnugerAsked:
Who is Participating?
 
GrahamSkanRetiredCommented:
OK.
I can't reproduce the problem. I used the Boron, Beryllium and Calcium fields, the last because it had 'Not Detected' as the first entry.

The formatting in the native application is ignored if the case of the default transfer method (ODBC) is used. Have you taken any steps to request that DDE be used instead?

0
 
MSmaxImplementation ConsultantCommented:
Can you please post sample spreadsheet with affected cells?
0
 
GrahamSkanRetiredCommented:
Have you tried using numerical formatting switch on the mail merge field?

Use Alt+F9 to switch to field code display. E.g. from

<<MyNumber>>

to { MERGEFIELD MyNumber }

and then add the switch such as \# #,##0.00 to get

{ MERGEFIELD MyNumber  \# "#,##0.00" }

You can toggle back to the field results view by reusing Alt+F9
0
 
runnugerAuthor Commented:

Hi,

I have uploaded a sample spreadsheet.  In this case Columns H and Z have the formatting I cannot remove.  When the data is imported into Access the Not Detected entries are removed and I get the scientific notation problems when I do the mail merge.  All other columns are fine. I have tried the numerical formatting switch to force the formatting but there is such variance in the numbers that the formatting looks strange (26.00000 vs 0.00045).  Will I need a complicated field switch using IF statements to determine what decimal place I need to format to and then display that number of digits?

Thanks, Runnuger
Import.xls
0
 
GrahamSkanRetiredCommented:
Before I look at the file, I should warn you that Word Fields are very limited in their programattic power and that determining the number of decimal places is almost certainly not possible
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.