PRB: Merged FoxPro Table Fields Display Incorrectly in Microsoft Word (250981)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q250981 SYMPTOMS
The Mail Merge feature of Microsoft Word does not properly display numeric and currency fields that are merged from Microsoft Visual FoxPro tables.
RESOLUTION
To display merged numbers correctly, you must use Format Masking. To format the results of a mail merge, you must use the numeric picture switch in the MERGEFIELD field code as shown here:
-
Open the main document in Microsoft Word.
-
Display the field codes by pressing ALT+F9.
- For all the merge fields that display numeric or currency fields, which do not have decimal places, change the field code as follows:
{ MERGEFIELD fieldname \# #,###,###.00 }
-
Press ALT+F9 to toggle the view to show field results instead of field codes.
-
Run the merge again to a new document to get the correct results.
REFERENCESFor additional information on setting up a DSN, click the article number below
to view the article in the Microsoft Knowledge Base:
186086 HOWTO: Get a File DSN in the Connection Designer
Modification Type: | Major | Last Reviewed: | 5/10/2003 |
---|
Keywords: | kbCodeSnippet kbDatabase kbprb KB250981 |
---|
|