DOCUMENT:Q122270  08-NOV-1994  [FOXPRO]
TITLE   :FIX: RQBE Quick Report Shows All Fields Not Just Selected Ones
PRODUCT :Microsoft FoxPro
PROD/VER:2.60
OPER/SYS:WINDOWS
KEYWORDS:kbui kbprg kbbuglist kbfixlist

---------------------------------------------------------------------
The information in this article applies to:

 - Microsoft FoxPro for Windows, version 2.6
---------------------------------------------------------------------

SYMPTOMS
========

An RQBE Browse shows just the fields selected for output, but an RQBE
Quick Report shows all the fields from the database, not just those
selected.

RESOLUTION
==========

Modify the Quick Report from the Command Window to remove the additional
fields. Also, turn off the Overwrite File check box in the RQBE Display
Options window so that the new report is not overwritten during
subsequent runs of the query.

STATUS
======

Microsoft has confirmed this to be a problem in Microsoft FoxPro version
2.6 for Windows. This problem was corrected in Microsoft FoxPro version
2.6a for Windows.

MORE INFORMATION
================

Steps to Reproduce Problem
--------------------------

1. In the Command Window, enter the following commands to set the default
   working directory to the TUTORIAL subdirectory and open the CUSTOMER.DBF
   database:

   SET DEFAULT TO C:\<FoxPro directory>\TUTORIAL
   USE CUSTOMER

2. Create a query called TEST.QPR:

   CREATE QUERY test

3. Click Fields, and choose Remove All. Then select these fields:

   COMPANY
   STATE
   ZIP

4. Click OK to return to the main RQBE window.

5. Choose Do Query to see the Browse result, which shows just the three
   selected fields.

6. Press the ESC key to return to the main RQBE window.

7. Under Output, change the selection from Browse to Report/Label.

8. Click Options. In the RQBE Display Options window, choose the Report
   radio button. Then choose the Quick Report check box.

9. Click OK to accept the Quick Report name of TEST.FRX.

10. Click OK to close the RQBE Display Options window.

11. Click See SQL to view the underlying SELECT statement, which
    accurately specifies the three output fields (COMPANY, STATE, ZIP):

       SELECT Customer.company, Customer.state, Customer.zip;
         FROM Customer;
         INTO CURSOR Test
       CREATE REPORT test.frx FROM Test WIDTH 800 COLUMN NOOVERWRITE
       REPORT FORM test.frx PREVIEW

12. Choose Do Query to see the preview result.

The preview shows a report designed with all the fields from the
database that can fit across the page, instead of the three fields
selected for output.

REFERENCES
==========

FoxPro version 2.6 "Language Reference," page L3-337ff.

Additional reference words: FoxWin 2.60 buglist2.60 fixlist2.60a FoxWin
KBCategory: kbui kbprg kbbuglist kbfixlist
KBSubcategory:

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1994.