Word Mail Merge Problem
I have an access database that contains First Name, Last Name, Address, City, State, Zip, Amount, Date Entered, etc. Those are just some that are included, but the one that I'm going to focus on is Amount.
I have my Table created and also a Query so that I can eliminate all record except for the records that were entered today Date(). I use this for creating receipts. In both the Table and Query I have my Amount field formatted as Currency and set to 2 decimal points.
I then go into Word where I have a document already created. I enter the fields to be merged, Date, First and Last Names, Address, City, State, Zip, Amount, etc. When I display the merged information, the Amount field no longer has a currency format. Ex. $2,240.00 Displays as 2240. or if cents are involved $2,240.50 Displays as 2240.5 I cannot understand what the problem is. If I could get some help it would be greatly appreciated.
I have attached a generic database and word document so you can see what i'm talking about.
Thanks:)
I read at a website, that like you said, I needed to use the DDE. I was unable to get that to work, but they also said that Word 2002 didn't use that type of connection anymore so they showed me what to change to make it work the way I wanted.
Currently displayed: <>
Press "Alt+F9"
That then displays {MergeField "Amount"} in place of the <> Field.
I added this # "$#,000.00" to the field and it worked perfectly.
Currently displayed: { MergeField "Amount" # "$#,000.00" }
Press Alt+F9 back to the way we started ---> <>
Fields now look like below after the merged data is displayed
$4,500.50
or
$ 500.50
Go to the mail merge wizard and get to the "open data source" part, and choose DDE as the connection type if you can.
Take your Access query and put this in another column:
=text(format([fieldname],$0.00)
or something similar. I forget the exact syntax.
I'm going to try somemore stuff and see what happens.
Thanks
#If you have any other info about this subject , Please add it free.# |