Microsoft KB Archive/112837

= PRB: "SQL Column '' Not Found" and Empty RQBE Window =

Article ID: 112837

Article Last Modified on 12/3/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.0
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5b for Macintosh

-



This article was previously published under Q112837



SYMPTOMS
When you are opening or modifying a previously saved query, the error message "SQL Column ' ' Not Found" appears. After the error message is displayed, the query will open, but everything except the table(s) used will be lost (including selected fields and WHERE conditions).



CAUSE
This behavior is caused by referring to a variable in a query and then opening or modifying the query when the variable is not in memory.



RESOLUTION
Make sure the variable is defined in memory before opening or modifying the query. Make sure not to save the changes to the query after it opens up empty. The error message will indicate the variable that needs to be in memory.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Type x="CA" in the FoxPro command window. USE the SALESMAN database found in the TUTORIAL subdirectory. Create a new query using the RQBE window. Set up the Selection Criteria as follows:

Field Name: Salesman.state

Operator: LIKE (the default)

Example: x

 Run the query to make sure it works. It should select four records if the SALESMAN database has not been modified since installation.</li> Save and close the query.</li> In the command window, type "RELEASE x" (without the quotation marks).</li> Open or modify the query. The error message "SQL column 'x' not found" will be displayed.

Clicking the error message will clear the message and the query will open with only the table(s) used remaining. The information under Selection Criteria, Selected Fields, Order By, Group By, and Having will be cleared.</li> Don't save the empty query. If you do, the missing information will be permanently lost.</li></ol>

If the variable or variables used in the query are restored, the query will open correctly.

Additional query words: VFoxWin FoxMac FoxDos FoxWin missing errmsg err msg

Keywords: kberrmsg KB112837

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.