帮助Crystal Report选择公式 [英] Help in Crystal Report Selection formula

查看:92
本文介绍了帮助Crystal Report选择公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我正在使用VB 6.0和Crystal Report 7开发应用程序,我需要在Crystal Report选择公式中使用distinct关键字的代码.

例如:假设我有一个表名"community".它的字段是S.No,Name,DOB,Community.
那么一个人可以成为多个社区的成员(如下所示)

编号|名称| DOB |社区
-------------------------------------------------- -----
0001 | Anand Kumar | 1985年8月18日|德里IT Proo
0002 |阿米特·库玛| 1984/06/14 |德里IT Proo
0003 | Anand Kumar | 1981年12月1日|德里计算机
0004 | Rishu Mehra | 1986/08/17 |德里IT Proo
0005 | Shivendra | 1982年11月5日|德里IT Proo
0006 | Mahendra Kumar | 1988/09/02 |德里IT Proo
0007 | Anand Kumar | 1983年4月31日|德里MCA
0008 | Rishu Mehra | 1984/09/13 |德里计算机

现在,我想仅打印带有序列号的Community表中的唯一名称(不需要其他字段),请告诉我Name字段上的任何选择公式,以便在打开水晶报表时仅显示DISTINCT名称,而忽略其他详细信息,唯一不同!

这意味着结果将是...

编号|名称
0001 | Anand Kumar
0002 |阿米特·库玛
0004 | Rishu Mehra
0005 | Shivendra
0006 | Mahendra Kumar

某些身体可以帮助我吗? Pz Plz pLz plZ plz


关于问候
阿南德·斯里瓦斯塔瓦
anandbpsri@yahoo.co.in
anandbpsri@gmail.com
anandbpsri@hotmail.com

Hi Friends,
I am developing an application with VB 6.0 and Crystal Report 7,I need the code to use distinct keyword in crystal report selection formula.

for example: suppose i have a Table name "community". Its fields are S.No, Name, DOB,Community.
Then a person can be member of more than one community (Which shown below)

S.No|Name | DOB | Community
-------------------------------------------------------
0001|Anand Kumar |18/08/1985| Delhi IT Proo
0002|Amit Kumar |14/06/1984| Delhi IT Proo
0003|Anand Kumar |12/01/1981| Delhi Computers
0004|Rishu Mehra |17/08/1986| Delhi IT Proo
0005|Shivendra |11/05/1982| Delhi IT Proo
0006|Mahendra Kumar |09/02/1988| Delhi IT Proo
0007|Anand Kumar |31/04/1983| Delhi MCA
0008|Rishu Mehra |13/09/1984| Delhi Computers

Now i want to print the distinct names from Community table with serial no only (Other fields not required), Please tell me any selection formula on Name field, So that when crystal report open it''ll display only DISTINCT names ignoring other details, only distinct!

That means Result would be...

S.No|Name
0001|Anand Kumar
0002|Amit Kumar
0004|Rishu Mehra
0005|Shivendra
0006|Mahendra Kumar

Can some body help me with this? Pz Plz pLz plZ plz


With regards
Anand Srivastava
anandbpsri@yahoo.co.in
anandbpsri@gmail.com
anandbpsri@hotmail.com

推荐答案

您可以在水晶报表中使用分组依据".
You can use a ''Group by'' in the crystal report.


这篇关于帮助Crystal Report选择公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆