472,961 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,961 software developers and data experts.

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 1425
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.com> wrote in message
news:uF**************@TK2MSFTNGP10.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
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...
3
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...
6
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...
10
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...
9
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...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.