APPEND FROM Command Appends Blank Records

Last reviewed: June 27, 1995
Article ID: Q95676
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxPro for MS-DOS, versions 1.02, 2.0, 2.5, and 2.5a
  • Microsoft FoxBASE+ for MS-DOS, version 2.1

SUMMARY

To append from one database to another, the fields in the source database must have the same names as the fields in the target database. Otherwise, blank records will be appended to the target file.

For example, if TEST_A.DBF has a field called NAME and TEST_B.DBF has a field called NICKNAME, the following code will append blank records to TEST_A:

   USE TEST_A
   APPEND FROM TEST_B

The number of blanks appended will be equal to the number of records in TEST_B.DBF.

To work around this problem, do one of the following:

  • Modify the structure of TEST_B to change "NICKNAME" to "NAME".

    -or-

  • Use the COPY TO ... TYPE DELIMITED command to first copy the records in TEST_B.DBF to a delimited ASCII text file, and then use the APPEND FROM ... TYPE DELIMITED command to append the records from the text file to TEST_A.DBF.


Additional reference words: FoxDos FoxWin 1.02 2.00 2.10 2.50 2.50a
KBCategory: kbprg
KBSubcategory: FxprgGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.