The information in this article applies to:
SYMPTOMSFoxPro produces a "Cannot access selected table" error message when a table is closed and that table is participating in a POPUP ... PROMPT FIELDS command that is active when the table is closed. CAUSE
When the PROMPT FIELDS clause of a POPUP command is used to define a popup,
FoxPro establishes a link between the POPUP command and the table from
which the POPUP command derives its data. If the table on which the popup
is based is closed while the POPUP command is active, the link between the
POPUP command and the data is severed. FoxPro, therefore, cannot continue
to display the popup.
RESOLUTIONIf a popup is created with the PROMPT FIELDS clause, do not close the table from which that popup derives its data while that POPUP command exists. Use the RELEASE POPUP command to release the POPUP command before closing any tables from which that popup obtains its data. Once the POPUP command has been released, close the desired tables. STATUSThis behavior is by design. FoxPro cannot accommodate the behavior found in dBASE in this instance due to differences in the way this type of popup is internally managed. MORE INFORMATIONSteps to Reproduce ProblemPlace the following code in a .PRG file and execute the code. When the popup appears, press the ENTER key to cause the "getname" procedure to be executed.
Additional query words: VFoxWin FoxDos FoxWin differences errmsg err msg error 1152
Keywords : kberrmsg FxinteropDbase |
Last Reviewed: August 11, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |