Microsoft KB Archive/92966: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - ">" to ">")
 
(2 intermediate revisions by the same user not shown)
Line 28: Line 28:
To convert a FoxPro database for use with a mail merge in Word version 1.x for Windows, issue the following commands in the FoxPro Command window: ''''''
To convert a FoxPro database for use with a mail merge in Word version 1.x for Windows, issue the following commands in the FoxPro Command window: ''''''


<pre class="CODESAMP">  USE &lt;database&gt;
<pre class="CODESAMP">  USE <database>
   COPY TO &lt;newfilename&gt; TYPE DELIMITED </pre>
   COPY TO <newfilename> TYPE DELIMITED </pre>
Here &lt;database&gt; is the name of the existing database and &lt;newfilename&gt; is the name of the intermediate format file. FoxPro automatically appends the .DBF extension to the filename.
Here <database> is the name of the existing database and <newfilename> is the name of the intermediate format file. FoxPro automatically appends the .DBF extension to the filename.


=== Word Version 2.0 ===
=== Word Version 2.0 ===
Line 36: Line 36:
To convert a FoxPro database for use with a mail merge in Word version 2.0 for Windows, issue the following commands in the FoxPro Command window: ''''''
To convert a FoxPro database for use with a mail merge in Word version 2.0 for Windows, issue the following commands in the FoxPro Command window: ''''''


<pre class="CODESAMP">  USE &lt;database&gt;
<pre class="CODESAMP">  USE <database>
   COPY TO &lt;newfilename&gt; TYPE FOXPLUS </pre>
   COPY TO <newfilename> TYPE FOXPLUS </pre>
where &lt;database&gt; is the name of the existing database and &lt;newfilename&gt; is the name of the intermediate format file. FoxPro automatically appends the .DBF extension to the filename.
where <database> is the name of the existing database and <newfilename> is the name of the intermediate format file. FoxPro automatically appends the .DBF extension to the filename.


=== Word Version 6.0 ===
=== Word Version 6.0 ===
Line 44: Line 44:
In Word version 6.0, you can use ODBC to directly read in the FoxPro database.<br />
In Word version 6.0, you can use ODBC to directly read in the FoxPro database.<br />
<br />
<br />
NOTE: See [[../foxpro/q157767|Q157767]] for information on downloading the ODBC driver for Visual FoxPro.<br />
NOTE: See [[../157767|Q157767]] for information on downloading the ODBC driver for Visual FoxPro.<br />
<br />
<br />


Line 67: Line 67:
For additional information, please see the following article in the Microsoft Knowledge Base:
For additional information, please see the following article in the Microsoft Knowledge Base:


<blockquote>[[../foxpro/q157767|Q157767]] PATCH: Vfpodbc5.exe Visual FoxPro ODBC Driver Version 5.0</blockquote>
<blockquote>[[../157767|Q157767]] PATCH: Vfpodbc5.exe Visual FoxPro ODBC Driver Version 5.0</blockquote>
Additional query words:
Additional query words:



Latest revision as of 10:25, 21 July 2020

HOWTO: Using a FoxPro Database in a Word for Windows Mail Merge

Q92966



The information in this article applies to:


  • Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 6.0
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, 2.5b, 2.6, 2.6a
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6, 2.6a
  • Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 6.0



Information from a Microsoft FoxPro database file can be converted for use in the mail merge feature of Microsoft Word versions 1.x, 2.0, and 6.0 for Windows.

NOTE: Memo fields convert as blank fields. If the data in the memo field is required for the mail merge, you must write a program to convert the data. Only Word versions 1.x and 2.x for Windows require that memo fields be converted.

Word Version 1.x

To convert a FoxPro database for use with a mail merge in Word version 1.x for Windows, issue the following commands in the FoxPro Command window: '

   USE <database>
   COPY TO <newfilename> TYPE DELIMITED 

Here <database> is the name of the existing database and <newfilename> is the name of the intermediate format file. FoxPro automatically appends the .DBF extension to the filename.

Word Version 2.0

To convert a FoxPro database for use with a mail merge in Word version 2.0 for Windows, issue the following commands in the FoxPro Command window: '

   USE <database>
   COPY TO <newfilename> TYPE FOXPLUS 

where <database> is the name of the existing database and <newfilename> is the name of the intermediate format file. FoxPro automatically appends the .DBF extension to the filename.

Word Version 6.0

In Word version 6.0, you can use ODBC to directly read in the FoxPro database.

NOTE: See Q157767 for information on downloading the ODBC driver for Visual FoxPro.


  1. Start Word version 6.0.
  2. From the Tools menu, choose Mail Merge. Then choose the Create button under Main Document. Edit your main document as needed.
  3. From the Tools menu, choose Mail Merge, choose the Get Data button under Data Source, and then choose Open Data Source.
  4. Select "MS FoxPro Files (*.DBF)" from the List Files Of Type box, and then select the FoxPro database.


NOTE: If "MS FoxPro Files (*.DBF)" is not available, you must install the data access (ODBC) utilities using the Word Setup program.



SUMMARY



REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

Q157767 PATCH: Vfpodbc5.exe Visual FoxPro ODBC Driver Version 5.0

Additional query words:

Keywords : kbODBC kbvfp kbvfp300 kbvfp500 kbvfp600
Issue type : kbhowto
Technology : kbWordSearch kbVFPsearch kbAudDeveloper kbFoxproSearch kbZNotKeyword2 kbZNotKeyword3 kbWord600 kbWord200 kbWord100 kbWord110 kbWord110a kbFoxPro200DOS kbFoxPro250DOS kbFoxPro250aDOS kbFoxPro250bDOS kbFoxPro260DOS kbFoxPro260aDOS kbFoxPro260 kbFoxPro250 kbFoxPro250a kbFoxPro250b kbFoxPro260a kbVFP300 kbVFP500 kbVFP600


Last Reviewed: October 20, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.