TITLE: Merge Variable Name Does Not Display PRODUCT: Ami Pro 2.0 DATE: 28-Jan-1992 PROBLEM: Certain merge field names in a merge data file do not display when inserted into a document or a 0 displays instead of a field name. SOLUTION: Merge field names which are spelled the same as macro language commands do not display when first inserted into a document or a 0 may display instead of the field name. If a merge field name is the same as a power field function, the value of the power field or an error message associated with the power field if the power field is improperly formed will display where the merge field is inserted. For example, if you insert a merge field named NumWords, a number representing the number of words in the displayed document will appear at the location of the merge field. NOTE: This is a display problem when viewing the merge document. Performing a merge will merge the records from the data file into the document and overwrite any text that displays where the merge field is located. If you need to see where such field names are located in a document, display power fields by choosing View / Show Power Fields. A more permanent way to display the merge field names, however, is to change the field name in the data file and insert the new field name into your document. IMPORTANT: It is advisable to change any merge field name that has the same spelling as a power field function. If a power field with the same name exists elsewhere in the merge document, the power field value will change to the value of the merge field as each record is merged. For example, if you have a merge field named NumPages and have included a power field function for NumPages in the document, the NumPages power field will have the value of the NumPages merge field as records are merged instead of the correct number of pages in the merge document. HOW TO CHANGE MERGE DATA FILE FIELD NAMES 1. Open the Ami Pro data file or the description file for an external data file. 2. Select (shade) a field name which does not display correctly when inserted into a document. 3. Type a new name for the data field. The new name should not be spelled the same as a macro command or a power field function. If the macro documentation has been installed, you can see macro command names by choosing Help / Macro Doc. You can see power field function names by choosing Edit / Power Field / Insert. Scroll through the Fields list box to view the function names. Choose Cancel to close the dialog box. 4. Repeat steps 1 through 3 for any field name which needs to be changed. 5. Choose File / Save to save the field name changes in the document. NOTE: If you are using a DIF file with LABEL names in the header of the DIF file, you will need to recreate the DIF file in the originating application. HOW TO INSERT THE NEW FIELD NAMES INTO A DOCUMENT 1. Open the document in which you are inserting the field names. 2. Choose View / Show Power Fields. 3. All of the merge field names now display. 4. Select (shade) the first field name which needs to be replaced. Make sure you shade the beginning and ending brackets surrounding the field name (for example, in the field name you would need to shade the word NOTES and the surrounding <> brackets). 5. Choose Edit / Cut. Specify Yes to the prompt "There is a field in the selection to be deleted. Would you like to continue?". 6. Repeat steps 1 through 5 until all field names that will be replaced have been removed. 7. Choose View / Hide Power Fields. 8. Position the insertion point where a field name needs to be inserted. 9. Choose Edit / Insert / Merge Field. 10. Select the first field name which should be inserted and choose Insert. 11. Position the insertion point where the next field name should be inserted. 12. Select the desired field name and choose Insert. 13. Repeat steps 11-12 for each field name that needs to be replaced. 14. Choose Cancel to close the Insert Merge Field dialog box when all field names have been replaced. 15. Choose File / Save to save the changes.