Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set order of report to a field in cursor2
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00832558
Message ID:
00832653
Views:
16
If you don't already have any type of index that does this, it's best to take the tables out of the data environment and prepare a cursor using SQL SELECT before printing the report. This way you can join the fields from both tables and tell it what fields to use for ordering the table.

If you have used tablename.fieldname in your report field expressions you'll have to go thru each field and take out the tablename portion. Otherwise, it won't match the temporary cursor you create.

Cathy





>i have in report's DE two tables, balance and employee. balance has empno field but i want to display firstname and lastname of employee, so i set relation from balance to employee table. this works perfectly fine.
>
>but i want to set the order accordning to employee.lastname? how do i do that? i have in my DE, balance as initialselected.
>
>any help pls?
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Reply
Map
View

Click here to load this message in the networking platform