report as excle report (1 Viewer)

mohamedmatter

Registered User.
Local time
Today, 04:04
Joined
Oct 25, 2015
Messages
118
Hi Group, thank you for providing assistance and solving most of the problems that many members encounter. I have a problem in preparing a report for a group of employees and printing it. I have attached a picture of the format of the report that was prepared on the Excel program. I ask for help in preparing this report on the Access program. I have also attached a simplified version of the database. An explanation of the problem is to work out the total salaries at the end of each page for the group of employees on this page, and on the next page at the top of the row that contains the total of the previous page, and so on until the end of the report.
 

Attachments

  • 1.png
    1.png
    4.1 KB · Views: 13
  • 2.png
    2.png
    4.8 KB · Views: 14
  • 3.png
    3.png
    4.9 KB · Views: 16
  • employee report.accdb
    432 KB · Views: 13
  • employee report.zip
    9.6 KB · Views: 6

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 19:04
Joined
May 7, 2009
Messages
19,309
maybe you can use temporary table to ouput your report.
see the code behind the report.
and open the report in "print preview".
 

Attachments

  • employee report.accdb
    504 KB · Views: 11

mohamedmatter

Registered User.
Local time
Today, 04:04
Joined
Oct 25, 2015
Messages
118
maybe you can use temporary table to ouput your report.
see the code behind the report.
and open the report in "print preview".
Thank you very much. Great work. I would like to understand the idea of the work
 

Gasman

Enthusiastic Amateur
Local time
Today, 12:04
Joined
Sep 21, 2011
Messages
14,797
maybe you can use temporary table to ouput your report.
see the code behind the report.
and open the report in "print preview".
@arnelgp
If you have 18 entries on the first page all at 1000 each, how does that total become 19000?
On the next page you get 37000 for the next 18 entries? which is correct for that page, and the next one at 55000 ?
 
Last edited:

mohamedmatter

Registered User.
Local time
Today, 04:04
Joined
Oct 25, 2015
Messages
118
@arnelgp
If you have 19 entries on the first page all at 1000 each, how does that total become 19000?
On the next page you get 37000 for the next 18 entries? which is correct for that page, and the next one at 55000 ?
Yes, there is a big error in the totals. Is there a solution?
 

mohamedmatter

Registered User.
Local time
Today, 04:04
Joined
Oct 25, 2015
Messages
118
@arnelgp
If you have 19 entries on the first page all at 1000 each, how does that total become 19000?
On the next page you get 37000 for the next 18 entries? which is correct for that page, and the next one at 55000 ?
@arnelgp
If you have 19 entries on the first page all at 1000 each, how does that total become 19000?
On the next page you get 37000 for the next 18 entries? which is correct for that page, and the next one at 55000 ?
I thank Professor Gasman for this note
 

Gasman

Enthusiastic Amateur
Local time
Today, 12:04
Joined
Sep 21, 2011
Messages
14,797
Sorry, I meant 18 on the page.
The final total is correct though?
I have amended my post accordingly.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 19:04
Joined
May 7, 2009
Messages
19,309
If you have 18 entries on the first page all at 1000 each, how does that total become 19000?
i corrected it (hopefully) on this new upload
 

Attachments

  • employee report.accdb
    1 MB · Views: 12

Gasman

Enthusiastic Amateur
Local time
Today, 12:04
Joined
Sep 21, 2011
Messages
14,797
Hi @arnelgp that now totals correctly, but appears now not to as the last number is 66, but the total is for the 60 entries.
There are gaps between 19 & 23 and 42 & 46.

I expect if they were just names it would not be noticable, so I would cetrainly not show the code_id.

Nice work all the same (y)
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 19:04
Joined
May 7, 2009
Messages
19,309
There are gaps between 19 & 23 and 42 & 46.
thanks for noticing.
but that is the original data i got when i downloaded the db on post #1.
you can also check that on the employee_tbl, there is already a gap on them.
 

Gasman

Enthusiastic Amateur
Local time
Today, 12:04
Joined
Sep 21, 2011
Messages
14,797
thanks for noticing.
but that is the original data i got when i downloaded the db on post #1.
you can also check that on the employee_tbl, there is already a gap on them.
Ah, I see, my apologies. :(
 

mohamedmatter

Registered User.
Local time
Today, 04:04
Joined
Oct 25, 2015
Messages
118
i corrected it (hopefully) on this new upload
Thank you, Professor Arnelgp, for your wonderful effort. Although I was late in thanking you for your efforts. I would have liked a simple explanation of the idea of this work so that I could train myself on similar ideas. You have my thanks and appreciation.
 

Users who are viewing this thread

Top Bottom