473,586 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with Crystal Report

RJN

Hi

I'm new to VS.Net Crystal Report. I'm using data sets as the source for
crystal report. I've a dataset which has 2 data tables. The first
table's schema is like this

Ptid String
Prid String
Chid String
PtName String
Count int

The columnc Ptid, Prid and Chid are the primary key columns

The second table's schema is like this

Prid String
Chid String
Prtext String
Chtext String

The columnc Prid and Chid are the primary key columns

There is foreign key relationship between Prid and Chid between the
tables.

My report is something like this.
I want to group based on Ptid and Prid and for each of these matching
values I want a list of Chid and Count.

Ptid1
Prid1
Chid1 100
Chid2 0
Prid2
Chid1 0
Chid2 400

Total 500

Ptid2
Prid1
Chid1 300
Chid2 0
Prid2
Chid1 600
Chid2 0

Total 900

I'm able to set up the dataset as the source to the crystal report. When
I add the tables, Crystal report links the tables and identifies the
relationship.

But I'm not able to get the list of all chid's for a given Prid.

My report looks something like this

Ptid1
Prid1
Chid1 100
Prid2
Chid2 400

Total 500

Ptid2
Prid1
Chid1 300
Prid2
Chid1 600

Total 900

Can somebody help me how will I be able to get such a report. Is there
any possibility of saying

select chid from table2 where table2.prid = table1.prid

Any help is highly appreciated.

Regards

RJN



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
1 1482
Hi RJN,

You should be setting up the relationship in your link properties; you may
also want to do some linking in your record selection section, although the
first idea is probably where you need to be.

HTH,

Bernie Yaeger

"RJN" <rj*@yahoo.co m> wrote in message
news:uF******** ******@TK2MSFTN GP10.phx.gbl...

Hi

I'm new to VS.Net Crystal Report. I'm using data sets as the source for
crystal report. I've a dataset which has 2 data tables. The first
table's schema is like this

Ptid String
Prid String
Chid String
PtName String
Count int

The columnc Ptid, Prid and Chid are the primary key columns

The second table's schema is like this

Prid String
Chid String
Prtext String
Chtext String

The columnc Prid and Chid are the primary key columns

There is foreign key relationship between Prid and Chid between the
tables.

My report is something like this.
I want to group based on Ptid and Prid and for each of these matching
values I want a list of Chid and Count.

Ptid1
Prid1
Chid1 100
Chid2 0
Prid2
Chid1 0
Chid2 400

Total 500

Ptid2
Prid1
Chid1 300
Chid2 0
Prid2
Chid1 600
Chid2 0

Total 900

I'm able to set up the dataset as the source to the crystal report. When
I add the tables, Crystal report links the tables and identifies the
relationship.

But I'm not able to get the list of all chid's for a given Prid.

My report looks something like this

Ptid1
Prid1
Chid1 100
Prid2
Chid2 400

Total 500

Ptid2
Prid1
Chid1 300
Prid2
Chid1 600

Total 900

Can somebody help me how will I be able to get such a report. Is there
any possibility of saying

select chid from table2 where table2.prid = table1.prid

Any help is highly appreciated.

Regards

RJN



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4003
by: Phin | last post by:
I need your HELP! I've seen all the posts on using Crystal Reports within vs.net (vb.net) and changing a SQL query at runtime. When I tried to pass in a dataset into the crystal report at runtime, the report still showed the results from the default query (from within the Crystal Report). Then I tried the XSD solution where you define a...
3
3785
by: Deasun | last post by:
I need some help please! Crystal is driving me nuts. Heres my code so far, see below. Problem: On the .export() line it comes back with error #5 Login failed! I know the login info is good so why is the bloody thing doing this. The paths have been checked and are correct. The crystal Report is a .rpt file. Not one created in the VS.net...
6
4974
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a...
10
3261
by: Phin | last post by:
I need your HELP! I've seen all the posts on using Crystal Reports within vs.net (vb.net) and changing a SQL query at runtime. When I tried to pass in a dataset into the crystal report at runtime, the report still showed the results from the default query (from within the Crystal Report). Then I tried the XSD solution where you define a...
9
468
by: Phin | last post by:
I need your HELP! I've seen all the posts on using Crystal Reports within vs.net (vb.net) and changing a SQL query at runtime. When I tried to pass in a dataset into the crystal report at runtime, the report still showed the results from the default query (from within the Crystal Report). Then I tried the XSD solution where you define a...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7950
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3835
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.