Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: Creating report from multiple linked table Post Reply Post New Topic
Author Message
Afi83
Newbie
Newbie


Joined: 08 Oct 2009
Online Status: Offline
Posts: 7
Quote Afi83 Replybullet Topic: Creating report from multiple linked table
    Posted: 08 Oct 2009 at 3:45am
Hi there

I have a problem in crystal report. I have a database which is totally relational. About 10 table with one to many or many to many relationship.
I want to create report from these tables but I don't know how.
My problem is:
I have 4 tables for saving information about students, Courses, coursestudentjunction and grades. I want to report the grades of each student for all courses for each major that student registered to.

In my report I want to show the student information on page header and course and grades on detail section.
When I try to do so the crystal can not link tables.
What I have to do make this?
I do my best but I can't find the solution.
I use crystal report 8.5 and work with vb6 for getting reports.
Here are the details about my tables:
tblStudent:Studentid,fname,lname,…majorID(FK)
tblcourse:courseid,coursename,majorID
tblstuCoursJunc: JuncID,studentID,courseID
tblGrades:GradesID,JuncID(fk),grades,gradesDate


Thanks in advance



Edited by Afi83 - 08 Oct 2009 at 3:47am
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 12 Oct 2009 at 2:05pm

What type of database is this?

Can you create the following links?

From                     To                          On
tblStudent             tblStuCoursJunc    studentID
tblStuCoursJunc    tblCourse              courseID
tblStuCoursJunc    tblGrades              juncID
 
Group on tblStudent.studentID or, if you need to have it in alphabetical order by student name, then create a formula and group on that.  Set up the group so that the group header repeats on every page.  Put the student info in the group header.  Turn on "New Page After" in the Group Footer.
 
Then sort on either CourseName or CourseID (depending on the order you need) and put the course and grade info in the details lines.
 
-Dell
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.