TheOnlyErs
New member
- Joined
- Oct 1, 2013
- Messages
- 3
- Programming Experience
- Beginner
Good day to all.
I am new here. I decided to join this forum to get some help with a project I'm working on using VB.net
Here's my problem.
I'm trying to display two tables on one crystal report using this code below.
The problem I have with this part of the code can be seen by the image I attached with this post. If you take a loot at the image below. The information being displayed on the report are being repeated. Moreover, the student ID 2 should be along side "Raven Talla" and not along side "Erwin Morillo".
What I want to do is to display the StudentID which comes from one table and the full name of the student coming from another table.
A helpful advice is greatly appreciated. Thank you.
I am new here. I decided to join this forum to get some help with a project I'm working on using VB.net
Here's my problem.
I'm trying to display two tables on one crystal report using this code below.
Dim MyCommand As New SqlCommand()
Dim DataAdapter1, DataAdapter2, DataAdapter3 As New SqlDataAdapter
Dim myDS As New DataSet1()
Dim rpt As New StudentWithTheMostViolationsReport()
DataAdapter1 = New SqlDataAdapter("SELECT vd.StudID, info.studLname, info.studFname, info.studMname from tblViolationDetails As vd FULL JOIN tblStudentInfo as info on vd.ViolationDetailsID = info.StudID", con)
DataAdapter1.Fill(myDS, "tblViolationDetails")
DataAdapter1.Fill(myDS, "tblStudentInfo")
rpt.SetDataSource(myDS)
frmReportViewer.ReportViewer.ReportSource = rpt
frmReportViewer.ShowDialog()
The problem I have with this part of the code can be seen by the image I attached with this post. If you take a loot at the image below. The information being displayed on the report are being repeated. Moreover, the student ID 2 should be along side "Raven Talla" and not along side "Erwin Morillo".
What I want to do is to display the StudentID which comes from one table and the full name of the student coming from another table.
A helpful advice is greatly appreciated. Thank you.