PRB: Query Wizard Cannot Set Relation If Tables Have Same NameLast reviewed: April 30, 1996Article ID: Q114790 |
The information in this article applies to:
SYMPTOMSThe Query Wizard will be unable to set a relation between two tables if the filenames of the two tables are the same.
WORKAROUNDThere are two possible workarounds:
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
This behavior occurs because the Query Wizard depends on the filename matching the alias name for the table. Under most circumstances, the filename and the alias name are the same. When two files with the same name are opened simultaneously in different work areas, FoxPro assigns an alias to the second file. This alias will change based on which work area is used to open the file. The alias name may be a single letter or the filename with an underscore and number added to the end. All queries use the alias, not the filename, of the table to retrieve data. The Query Wizard must create an alias name that will remain consistent regardless of the work area used to open the files. Internal functions are used to create an alias for each open .DBF file that exactly matches the filename. This is impossible to do when two files share exactly the same name.
REFERENCESFor more information about aliases, refer to the ALIAS() and DBF() functions in the FoxPro "Language Reference."
|
Additional reference words: FoxDos FoxWin 2.60 greyed unavailable
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |