office mail merge format question in access w/ word

bharnett

Board Regular
Joined
Aug 5, 2004
Messages
94
I am working with a Word document that pulls from an Access datasource. I am merging large numbers into the word doc, and I want them to be in the format xxx,xxx,xxx (instead of xxxxxxxxx). I set up the format on the query and the underlying table to format the numbers this way, but when the data is merged in the word doc, it's just raw numbers ie 84800000 instead of 84,800,000. The help file is totally useless.

:beerchug:
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You can format the MERGEFIELD in Word.

Right click on the field causing the problem and select toggle field codes.

You should then see something like this.

{MERGEFIELD YourAccessField}

To get the formatting you want something like this might work.

{MERGEFIELD YourAccessField \# ###,###,###}

Another way would be to use the Format statement in the query to turn the number into text with the required format.

The help file is not useless you just need to have some idea of what you are looking for.
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,119
Members
452,381
Latest member
Nova88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top