PRB: Error "File Does Not Exist" When Appending from a Cursor (140225)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q140225 SYMPTOMS
After using a SQL SELECT command, the temporary cursor created remains open
and active but is read-only. Attempting to append records from this cursor
by using the APPEND FROM command into a read/write Cursor or Table
generates this error:
File does not exist
CAUSE
SQL cursors are temporary files residing in memory. When the APPEND command
is issued, Visual FoxPro searches for the file in the default directory and
along the search path. When the file is not found, the error is generated.
RESOLUTION
To correct this problem, issue the APPEND FROM command with the DBF()
clause, and pass the name of the cursor to the DBF() function as in this
example:
APPEND FROM DBF("<Read-Only Cursor name>")
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/10/2000 |
---|
Keywords: | KB140225 |
---|
|