The information in this article applies to:
SYMPTOMSWhen using a SEEK command in the FOR clause of the APPEND FROM command, the _TALLY system variable does not reflect the additional records added to a table. CAUSEThe SEEK command is moving the record pointer in the table while the APPEND FROM command is adding records. This prevents the _TALLY from returning the proper count. RESOLUTIONPlace the SEEK command, or any other command that may move the record pointer, outside of the APPEND FROM command. Use a FOR...NEXT or an IF...ENDIF loop structure to process and limit the records. MORE INFORMATIONThe code example below creates two tables and populates them with one and three records, respectively. After creating an index on the second table, the APPEND FROM command adds records based on the results of the SEEK command. The SEEK command, however, moves the record pointer while records are being added, which causes _TALLY to return an incorrect value. Steps to Reproduce BehaviorCreate a program with the following code and run it:
_TALLY returns zero (0) instead of 2.
REFERENCESFor more information about updating master and transaction tables, please see the following articles in the Microsoft Knowledge Base: Q98355 How to Update a Master File from a Transaction File Additional query words: VFoxWin KBDSD
Keywords : kbVFp300 kbVFp300b kbVFp500 kbVFp600 FxprgGeneral |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |