Solved

Replace True/False with Yes/No in Word Merge from Access Database

Posted on 2008-06-17
7
664 Views
Last Modified: 2012-05-05
The problem exporting Yes/No fields from Access is that they appear in a Word Merge as True/False.  I know it's possible to use an IIF statement in the Word document merge field to change it to Yes/No.  

But when I tried this
{IF {MERGEFIELD "ReviewActioned"} = "True"  "Yes" "No" }

When I merge it writes
ReviewActioned

What have I done wrong?
0
Comment
Question by:Ludique
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 44

Accepted Solution

by:
GRayL earned 500 total points
ID: 21805975
use:

Format(ReviewActioned,"Yes/No")

assuming ReviewActioned contains the values -1 or 0 (True or False)
0
 
LVL 44

Expert Comment

by:GRayL
ID: 21805988
In reality, you should export a query to Word rather than the table, in which the field ReviewActioned is replaced by the Format() function above.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 21806098
It's hard to guess what is wrong. I thought you had this working a while ago. I trust that you gave entered the {} pairs with Ctrl+F9 or as a part of entering the field.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 76

Expert Comment

by:GrahamSkan
ID: 21806117
Should be: "...I trust that you have..."
0
 

Author Closing Comment

by:Ludique
ID: 31468083
Thank you.
0
 
LVL 46

Expert Comment

by:aikimark
ID: 21806241
What do you mean by 'export'?

I concur with the other experts that you should use a query to format the table data to better suit your needs.
0
 
LVL 44

Expert Comment

by:GRayL
ID: 21806394
Thanks, glad to help
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question