Solved DYNAMIC REPORT FROM CROSSTAB QUERY (1 Viewer)

I am alive

Member
Local time
Today, 06:19
Joined
Aug 29, 2020
Messages
139
Your Report will not work using the method you are suggesting.

If you want it to be dynamic and only show those subjects which are active then you cannot use a Crosstab and the subjects would have to be displayed Vertically.
There is an error also in vertically. If a student drops a subject how can I remove that Subject without interfering with subjectID? Kindly help me
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 20:19
Joined
Oct 29, 2018
Messages
21,453
There is an error also in vertically. If a student drops a subject how can I remove that Subject without interfering with subjectID? Kindly help me
Hi. I've been following this thread for a while because I really want to help; but I must say, after over 49 posts, I still don't understand what you are looking for. I downloaded your last sample db and can't see what is wrong with it. Using an unbound Textbox filled with "This will be populated... (something like that)" doesn't help me understand where that info will come from or what it's supposed to look like. As soon I have an idea what you're really asking, I will try to suggest something.

In the off chance this might help, take a look at this simple function.

 

mike60smart

Registered User.
Local time
Today, 04:19
Joined
Aug 6, 2017
Messages
1,908
In the attached look at the new Report created called rptStudentsMarks.

This is just a basic Report and in the Subjects table I have added a field named "Active"

If you make any of these Subjects "Inactive" then the Subject does not appear on the Report.
 

Attachments

  • GRADEMARKS.zip
    162 KB · Views: 105

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:19
Joined
May 7, 2009
Messages
19,231
do you need All students in report or just the 1 on the Form?
 

mike60smart

Registered User.
Local time
Today, 04:19
Joined
Aug 6, 2017
Messages
1,908
Is this Report layout better??
 

Attachments

  • GRADEMARKS.zip
    99.3 KB · Views: 99

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:19
Joined
May 7, 2009
Messages
19,231
here is my version of your report.
 

Attachments

  • GRADEMARKS.zip
    154.8 KB · Views: 114

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:19
Joined
May 7, 2009
Messages
19,231
btw, the paper size is A3 and there are only 24 subjects that can fit on report.
you can delete any course on the subject table and the report will adjust.
 

I am alive

Member
Local time
Today, 06:19
Joined
Aug 29, 2020
Messages
139
btw, the paper size is A3 and there are only 24 subjects that can fit on report.
you can delete any course on the subject table and the report will adjust.
Genius. Microsoft should employ you. You are really talented. God bless you so much.
 

mercystone

Member
Local time
Today, 06:19
Joined
Sep 20, 2021
Messages
108
here is my version of your report.
I am using your approach. Thanks. Question- i want a code which will hide subjects if it has no mark. E.g if English has no marks or isnull hide it. Only subjects with marks to be shown.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:19
Joined
May 7, 2009
Messages
19,231
ok, it will hide those subjects that has no marks.
see the report again.
 

Attachments

  • GRADEMARKS.zip
    168.9 KB · Views: 98

mercystone

Member
Local time
Today, 06:19
Joined
Sep 20, 2021
Messages
108
Exactly what I wanted. Is there any way I could change the subjects to be selected to be 11? Your labels has 24. I wish to be 11 but the subjects should not be deleted. To be hidden just like what you have done but those to be printed are only 11. I believe those 13 labels and there values should be deleted and enlarge the printout.
 
Last edited:

mercystone

Member
Local time
Today, 06:19
Joined
Sep 20, 2021
Messages
108
If there is a code to hide subjects with no marks then I believe there should be a code to delete the hidden labels with no values and show only those with values. Please help me on this
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:19
Joined
May 7, 2009
Messages
19,231
here again setting the backstyle and borderstyle appropriately.
 

Attachments

  • GRADEMARKS.zip
    183.9 KB · Views: 105

Users who are viewing this thread

Top Bottom