Microsoft KB Archive/133245

= BUG: One-to-Many Report Wizard Doesn't Sort in Correct Order =

Article ID: 133245

Article Last Modified on 5/7/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q133245



SYMPTOMS
The sort order selected in Step 4 of the One-to-Many Report Wizard is not applied correctly in some cases.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
  Run the following code to create the databases and tables needed. This example uses the existing sample database (Testdata.dbc), so you need to have the samples installed for this example to work. *     * REPTSET.PRG: Setup code for duplicating problem *     CLOSE ALL CREATE DATABASE CUSTVW CREATE SQL VIEW CUSTVW1 AS SELECT CUST_ID,COMPANY,MAXORDAMT; FROM C:\VFP\SAMPLES\DATA\TESTDATA!CUSTOMER OPEN DATABASE C:\VFP\SAMPLES\DATA\TESTDATA USE ORDERS COPY TO ORDER.DBF CLOSE ALL CREATE DATABASE CUSTOMER ADD TABLE ORDER USE ORDER INDEX ON CUST_ID TAG CUST_ID DESCENDING CLOSE ALL  Open the new databases Custvw and Customer. Run the One-to-Many Report Wizard. (On the Tools menu, click Wizards, and then click Report. From Custvw.dbc database, choose the Custvw1 view for the parent table and add all the fields. From the Customer.dbc database, choose the Order table and several fields including Cust_Id. For example, choose Order_Id, Cust_Id and Order_Amt. Set Cust_Id is as the matching field for both tables in step 3. Under Sort Order (step 4 of the Report Wizard), choose Cust_Id - descending.</li> Choose finish and preview. You will see that the report is in Cust_Id ascending order even though you specified descending order.</li></ol>

Additional query words: kbvfp600

Keywords: kbbug KB133245

-

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

© Microsoft Corporation. All rights reserved.