PC Review


Reply
Thread Tools Rate Thread

Access Database Query to Microsoft Word Mail Merge

 
 
CRBI
Guest
Posts: n/a
 
      13th Nov 2008
I have an access database in which I've written a query to pull certain data.
I am now performing a mail merge in Microsoft Word for that data. Everything
works perfectly except this one thing -- in the table (and therefore the
query itself) I have a field for contribution amount. In the table design I
have the data type as Currency and the properties as 2 decimal places. When
I view this info in datasheet view, it shows correctly, as $140.50. However,
once I run the mail merge and use that field, it only shows $140.5. I have
wracked my brains and cannot figure out why it doesn't show the full number.
Does anybody have any ideas here? And please, not too complicated for a
entry level user.
 
Reply With Quote
 
 
 
 
Ken Sheridan
Guest
Posts: n/a
 
      13th Nov 2008
The underlying number value is 14.5, you see the 50 cents in full purely as a
result of formatting. In the query return the formatted value. The Format
function returns a String expression, so will retain the trailing zero. In
query design view put something like this in the 'field' row of a blank
column:

MyMoneyFieldFormatted:Format([MyMoneyField],"$#,##0.00")

By specifically formatting it as USD rather than as "Currency" it will
ensure that it appears as such on a system whose currency is set to something
else. If I opened your file for instance I'd otherwise see the money as GBP.

Ken Sheridan
Stafford, England

"CRBI" wrote:

> I have an access database in which I've written a query to pull certain data.
> I am now performing a mail merge in Microsoft Word for that data. Everything
> works perfectly except this one thing -- in the table (and therefore the
> query itself) I have a field for contribution amount. In the table design I
> have the data type as Currency and the properties as 2 decimal places. When
> I view this info in datasheet view, it shows correctly, as $140.50. However,
> once I run the mail merge and use that field, it only shows $140.5. I have
> wracked my brains and cannot figure out why it doesn't show the full number.
> Does anybody have any ideas here? And please, not too complicated for a
> entry level user.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge into Microsoft Word using Microsoft Access as data sour =?Utf-8?B?U1I=?= Microsoft Access 3 6th Nov 2007 04:12 PM
Microsoft Word Mail Merge Database =?Utf-8?B?UHJ1bmNleQ==?= Microsoft Word Document Management 2 3rd Oct 2006 01:19 PM
access database with word mail merge Tobit Microsoft Access 2 31st Mar 2004 01:44 PM
access database with word mail merge Tobit Microsoft Access Getting Started 1 31st Mar 2004 01:44 PM
Merge a Query from within Access to a Word Mail Merge Main Doc Rebecca Microsoft Access VBA Modules 3 22nd Nov 2003 01:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 PM.