The information in this article applies to:
SYMPTOMSUsing the SELECT-SQL command with the ON clause, to Join a Parent table to two child tables, may cause the following error: If the error occurs, then a result set is not created by the query. CAUSEThe Visual FoxPro query parser looks at the SELECT-SQL queries starting from the innermost part of it. In the case of the SELECT..JOIN..ON statement in the MORE INFORMATION section of this article the parser looks at the following:
The parser cannot resolve the reference for "test1.t1f1" because it is not
in scope at this level.
WORKAROUND
You can use one of the following workarounds to correct this behavior:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
When creating a query to Join a Parent table to two child tables using the View Designer, the SQL statement that is built is similar to the one in step 3. Because of this, the View Designer is not able to process the query correctly. The above article discusses the correct syntax for a select based on a parent, child and grandchild relationship. REFERENCESFor more information, please see the following article in the Microsoft Knowledge Base: Q156667 Limitations of View Designer vs. CREATE SQL VIEW Command Additional query words: kbvfp500 kbvfp500a kbvfp600
Keywords : kbprg kbVFp kbVFp500abug kbVFp500bug FxprgSql |
Last Reviewed: August 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |