Microsoft KB Archive/100018

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Article ID: 100018

Article Last Modified on 12/1/2003



APPLIES TO

  • Microsoft Visual FoxPro 3.0 Standard Edition
  • Microsoft FoxPro 2.5b
  • Microsoft FoxPro 2.0
  • Microsoft FoxPro 2.5b for MS-DOS



This article was previously published under Q100018

SYMPTOMS

When you are selecting output fields in the Relational Query By Example (RQBE) tool, you can create a new field and specify a field heading. This heading will appear in the SELECT statement and the query will contain the new field with the heading. The query will later produce the desired results unless the RQBE window is saved and opened again, in which case the field heading for the new field will be dropped and FoxPro will substitute "Exp_<#>", where <#> is a number signifying the display position of the field.

RESOLUTION

If you need to make a change to an existing query, repeat steps 2-4 above, and remove "string" from the fields list.

STATUS

This problem was corrected in FoxPro version 2.5a for Windows and in FoxPro version 2.5a for MS-DOS.

MORE INFORMATION

Steps to Reproduce Problem

  1. From the File menu, choose Open, and select the database to open.
  2. From the File menu, choose New, select Query, and then choose New.
  3. Select Fields.
  4. In the text box under the Function popup list, type the following:

    "string" as Newfield

  5. Choose Move to add "'string' as Newfield" to the Selected Output list. Choose OK.
  6. Choose See SQL.

    The SELECT statement will contain "'string' as Newfield" in the fields list.
  7. Choose Do Query. The query result will have a field titled "Newfield" containing the word "string" in every record.
  8. Save the query, close it, and reopen it. The Output fields list will now list just "'string'" NOT "'string'" as Newfield". However, the See SQL push button will still show "'string' as Newfield" and the query result will still label the field as "Newfield".
  9. Make any other change. Save the query. The field name will be dropped. Running the query will produce a field labeled "Exp_#" instead of "Newfield".



Additional query words: FoxDos FoxWin VFoxWin

Keywords: KB100018