Click here to Skip to main content
15,885,885 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I am writing to ask for help from the community because I know that here I will certainly find the solution to my problem. I have been looking for several days without success. I am a novice in vb.net programming
I would like to display data in a rdlc report matrix, but all the data do not appear.
I have three tables in my project:
tbEleve
tbNotes
tbMaterials


I attach these three tables with the following query:
SQL
SELECT DISTINCT tbEleve.Matricule, tbEleve.Nom, tbMatieres.Matiere, tbNotes.NoteEleve, tbMatieres.Coef
FROM     ((tbEleve INNER JOIN
                  tbMatieres ON tbEleve.ID_Classe = tbMatieres.ID_Classe) INNER JOIN
                  tbNotes ON tbMatieres.ID_Matiere = tbNotes.ID_Matiere AND tbEleve.Matricule = tbNotes.MatriculeEleve)
UNION ALL
SELECT tbEleve_1.Matricule, tbEleve_1.Nom, tbMatieres_1.Matiere, tbEleve_1.ID_Notes, tbMatieres_1.Coef
FROM     (tbEleve tbEleve_1 INNER JOIN
                  tbMatieres tbMatieres_1 ON tbEleve_1.ID_Classe = tbMatieres_1.ID_Classe)

which gives me the following result in the query generator:

In short, my matrix does not display all the data of my data adapter.

What I have tried:

I have attached my tables with the following sql query
SQL
SELECT DISTINCT tbEleve.Matricule, tbEleve.Nom, tbMatieres.Matiere, tbNotes.NoteEleve, tbMatieres.Coef
FROM     ((tbEleve INNER JOIN
                  tbMatieres ON tbEleve.ID_Classe = tbMatieres.ID_Classe) INNER JOIN
                  tbNotes ON tbMatieres.ID_Matiere = tbNotes.ID_Matiere AND tbEleve.Matricule = tbNotes.MatriculeEleve)
UNION ALL
SELECT tbEleve_1.Matricule, tbEleve_1.Nom, tbMatieres_1.Matiere, tbEleve_1.ID_Notes, tbMatieres_1.Coef
FROM     (tbEleve tbEleve_1 INNER JOIN
                  tbMatieres tbMatieres_1 ON tbEleve_1.ID_Classe = tbMatieres_1.ID_Classe)


I use an access database
Posted
Updated 17-Apr-23 4:32am
v4

1 solution

Go to Design view, Select Smart tag. Click Choose Report Dropdown, Select RDLC report (StudentReport). Click Choose Data Source and select <New data Source>. Select Object and Give DataSource Name.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900