473,385 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Getting currency to appear in mail merge from fields made in query

Hi, I need some helpings again!

I have a query from one of my tables that gets a total amount of money and
gets a percentage from it

ie, the field I create in the query is invGSTAmount from a field in my table
called invAmount, so I but in the design view of my query:

invGSTAmount: [invAmount]*1/11

Now, I merge these two fields into MS Word. The field, invAmount merges with
all the formatting it's supposed to (currency), but when I merge the
invGSTAmount it just throws in a stupid number without all the currency
formatting.

Is there a way I can get around this? Normally I would just chuck a "$" and
a ".00" around it, but there are tonnes of prices I'm dealing with that use
the cents thingy.

Help is appreciated as always ;)
Tom Keane
Nov 13 '05 #1
1 3768
Right-click the merge field Word. You should be able to format it as
currency there.

If you can't sort it out in Word, you can explicitly format the data in the
query in Access. The field is then text, and the query therefore exports the
desired text to Word. The calculated query field would be:
invGSTAmount: Format([invAmount]*1/11, "Currency")

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Tom Keane" <ol*******@sillysillyspamyahoo.com> wrote in message
news:hJ******************@news-server.bigpond.net.au...
Hi, I need some helpings again!

I have a query from one of my tables that gets a total amount of money and
gets a percentage from it

ie, the field I create in the query is invGSTAmount from a field in my
table
called invAmount, so I but in the design view of my query:

invGSTAmount: [invAmount]*1/11

Now, I merge these two fields into MS Word. The field, invAmount merges
with
all the formatting it's supposed to (currency), but when I merge the
invGSTAmount it just throws in a stupid number without all the currency
formatting.

Is there a way I can get around this? Normally I would just chuck a "$"
and
a ".00" around it, but there are tonnes of prices I'm dealing with that
use
the cents thingy.

Help is appreciated as always ;)
Tom Keane

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Traci | last post by:
I need to do a mail merge letter from my database. The letter will be addressed to small companies and in the body of the letter I need to list employees of the company. There will be from 1 to 15...
5
by: Tom Keane | last post by:
Okay, so the deal is, I am doing a mail merge document in order to print invoices. The field I get the amount of money is "invAmount". What I would like to do is be able to manipulate this number...
2
by: Aaron | last post by:
hello, i am perfoming a mail merge with the following code. Public Function MergeIt() Dim objWord As Object Set objWord = GetObject("C:\MyMerge.doc", "Word.Document") ' Make Word visible....
1
by: Lisa | last post by:
I have a query named QryDept where one of the fields is DeptID. The query is used for the data source of a mail merge letter. I would like to control which department is to get the mail merge...
8
by: Squirrel | last post by:
Hi everyone, I've created a mail merge Word doc. (using Office XP) , the data source is an Access query. Functionality I'm attempting to set up is: User sets a boolean field to true for...
8
by: Darryl Kerkeslager | last post by:
I hope that although this is 25% Access and 75% Word, that someone will know ... The whole problem here arises because 1) Microsoft acknowledges an 'issue' wherein TextInput type FormFields are...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
1
by: kkrizl | last post by:
I have a form that displays general information about an alarm permit location. There's a subform that shows detailed information about burglar alarms that have gone off at the location. When a...
0
by: Phil C. | last post by:
Hi, I'm using Access 2000. I have a Select Query that uses the MID function to separate the actual text of articles from the title of the articles. The articles are enterd into the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.