Advertisement

05.08.2007 at 11:16PM PDT, ID: 22560852
[x]
Attachment Details

Multiple data tables in data set - fetches multiple rows in Crystal Report

Asked by anand_007 in Visual Studio .NET 2003

Tags: crystal, multiple, report, dataset, data

Dear experts, I am facing a wierd problem. I am using .NET 2003 and Crystal that comes bundled with it.
I have to create a report with fields from three related tables -
DM_Company (CompanyID char(5), CompanyName (varchar(35));
DT_TRIGGER (UserID char(5), TCode Numeric(12), Active char(1));
DT_USER (UserID char(5), CompanyID char(5)).
I require to display TCode Grouped By CompanyName and display User Details for the same.

I have created a .xsd Schema file with these three tables and appropriate relations. I am creating a DataSet with these three tables as follows:
strSQL = "Select a.CompanyName, b.TCode, c.UserID From ... etc"

'Create a Connection, command object. Open the connection and finally call the DataAdapter.Fill method.
Since I have three tables I am calling the DataAdapter.Fill method thrice for each table.

On the report, I am using the table definitions from the xsd file to display three fields UserID, CompanyName and Active.  I have entered three trial records. When I check the number of records being returned by my data set using ds.Tables[0].Rows.Count everything seems fine - I get three records. However, my report shows me 9 records .. possibly three records each corresponding to the three tables.

I have set a relation for the xsd, I am using the appropriate sql to build my data set. I've also tried to add a relation into the dataset. However, the relations give an error .. as the parent child tables have a one-many relationship. It is allowing the relations only for a 1-1 type relationship. I am at my wits end .. can anyone help?? Thanks in advanceStart Free Trial
[+][-]05.09.2007 at 12:59AM PDT, ID: 19055263

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.09.2007 at 02:33AM PDT, ID: 19055619

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.09.2007 at 03:04AM PDT, ID: 19055756

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 12:03AM PDT, ID: 19063139

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 01:24AM PDT, ID: 19063367

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 01:41AM PDT, ID: 19063406

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 01:59AM PDT, ID: 19063501

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 03:20AM PDT, ID: 19063847

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 03:55AM PDT, ID: 19064018

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 03:59AM PDT, ID: 19064034

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 04:19AM PDT, ID: 19064145

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2007 at 05:13AM PDT, ID: 19064385

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2007 at 04:20AM PDT, ID: 19071184

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2007 at 04:21AM PDT, ID: 19071190

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2007 at 09:11AM PDT, ID: 19073217

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2007 at 11:07PM PDT, ID: 19083153

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2007 at 11:20PM PDT, ID: 19083189

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Studio .NET 2003
Tags: crystal, multiple, report, dataset, data
Sign Up Now!
Solution Provided By: adriankohws
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.14.2007 at 12:26AM PDT, ID: 19083416

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2007 at 01:27AM PDT, ID: 19083582

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2007 at 01:28AM PDT, ID: 19083586

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32