Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sort Order
Message
From
06/08/2001 08:48:42
 
 
To
03/08/2001 02:06:38
General information
Forum:
Visual Basic
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00539249
Message ID:
00540084
Views:
28
Hi!

I do not know CR so well, but I suggest that sorting works for case when data source is a query for report. When it is SP, sort result set in the SP before it is returned.

>hi
> (plz solve it only if u have enough time to read)
>
> So let me explain u the scenario
> i'm having 4 tables
>1. agentmaster (agent code[primary key],agent name)
>2. issuemaster (issue code[p key],issue name)
>3. mobilization (agent code,issue code,appl no,trans id[p key])
>4. dispatch (agent code, issue code, no of forms, dispatch date) [agent code + issue code + dispatch date...p key here]
>
>ok so 1 and 2 are master and 3 and 4 are transaction tables
>now table 3 contains the application mobilized by an agent for a particular issue and he could mobilized any no. of applications.
>table 4 contains the no. of forms dispatched to an agent for an particular issue on a particular date and also he could ask for additional forms.
>Now table
>3 and 4 are not related with each other I mean i cud send 1000 forms he may mobilize none, i cud send none but he cud mobilize 100...like that
>
>now i need to calculate the strike rate of agents for a particular issue.
>the strike rate = (no of forms mobilized / no of forms dispatched) * 100
>so what i did is made a SP which uses union and it returns the grouped rows.
>now i go in crystal report and grouped on issue and agent code and i GET the strike rate. very fine uptil here it worked very fine.
>-----------------------
>now in crystal report, i want to sort on strike rate(which is just a formula field).
>in my vb form I used Crystal report control's property SortFields like this
>crw1.sortfields(0)="+{MySP.@strikerate}" or crw1.sortfields(0)="+{@strikerate}"
>both statement gives error
>-----
>Any thoughts,help would be appreciated..
>
>
>Thanx for giving ur time
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform