Solved

How can I eliminate the field calculation error in my mail merge document?

Posted on 2007-12-04
13
1,257 Views
Last Modified: 2012-05-05
I am using a system generated text file as the basis for my mail merge document.  I open the text file in Excel, format the numbers as text (so leading zeros are not lost in the zip code field), create column titles and save the document as an .xls file.  When I merge my Word document to the printer or to a new file, I receive the field calculation error for every record.  

Thanks for the help!
0
Comment
Question by:GFCU
  • 5
  • 5
  • 3
13 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
What is the merge field and what is the data from Excel that is being read into it?
0
 
LVL 1

Author Comment

by:GFCU
Comment Utility
The merge fields that I inserted into the merge document are taken directly from the xls file.  Those fields are <<NAME>>, <<ADDR1>>, <<ADDR2>>, <<CITY>>, <<STATE>>, <<ZIP>> and <<ACCT>>.  

Any thoughts?
0
 
LVL 1

Author Comment

by:GFCU
Comment Utility
I almost forgot, the information in the xls document is just text, no formulas.
0
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
I have seen the error before, but only when calculation is involved.

If the data isn't confidential or can be made unconfidential, you could zip the files and post them here: www.ee-stuff.com

You log on with same credentials as this site. You need to identify the upload with either the URL or the numerical part of this question. After a successful upload you should be shown a URL of the file. Can you copy it in here, please? We will have a look ASAP.
0
 
LVL 1

Author Comment

by:GFCU
Comment Utility
I uploaded a sampling of the data in the xls document.  Here is the link http://www.ee-stuff.com/Expert/Upload/getFile.php?fid=5985. Thanks!
0
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
I note that you have uploaded the spreadsheet. You have removed a column for security and that the Word merge main document isn't included.

...


I have now created a simple main document using all the fields, and I can merge from that without error. Can you upload your main document so we can see if that is the problem, please?
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 7

Expert Comment

by:Etircet
Comment Utility
Was the main document an existing document?
Make sure the field names in the main document are EXACTLY the same (spaces and sybols included) as the corresponding fields in the Excel file.
0
 
LVL 1

Author Comment

by:GFCU
Comment Utility
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 200 total points
Comment Utility
At the end of the first paragraph there is an IF Field which which tests a custom property called "Institution" using a DocProperty field for a value of "Bank". The field currently displays as "share drafts". However the custom property does not exist, hence the field calculation error.
0
 
LVL 7

Expert Comment

by:Etircet
Comment Utility
Well spotted Graham!
0
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 200 total points
Comment Utility
Thanks Etircet.
Perhaps I should have suggested that GFCU do what I did.
With the main document, I hit Alt + F9. This toggles between displaying field results and field codes. It's a lot easier then.
0
 
LVL 1

Author Comment

by:GFCU
Comment Utility
Alt + F9 took care of it!  Since I did not create the document, I did not realize that there were fields in it.  Thank you both so much for your help!
0
 
LVL 7

Expert Comment

by:Etircet
Comment Utility
She can also just select all the data in the main document which will make field codes stand out.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VLOOKUP to a Closed Workbook 22 63
Excel 6 16
Delete rows if they are duplicates 3 12
+1 to an even value 4 10
This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now