I need to create a report to dump into Excel. I might create the report in Access first and then create the Excel report from that – I haven’t decided yet. The report will need to pull data from two tables – Employee and PayJournal. The tables are linked by EmployeeID. The report will display the Employee ID, Employee name, Department, and the wages for each day of the week. The wages will come from the PayJournal table. The ID, name, and department are from the Employee table. The data needs to be grouped by date and department, and that is the part I would like to get some advice on. There will be a group of data associated with Department DLC, another group associated with Department DLE, and so on. I would also need to print new headings on each department break. Each department will have subtotals beneath it. The code will need to be written to handle a variable number of employees in each department.
I have written programs to group data by fields in other languages. One approach is to load all the data from the tables into an array and sort. I could also create a temporary table from a query and sort the data by date and department.
I already know how to dump tables into Excel without grouping the data. I also know how to place specific values into cells.
Can anyone provide some advice on the best approach using Access to create this report in Excel? Are there any sites with code examples similar to what I need? All ideas are welcome.
Thanks
I have written programs to group data by fields in other languages. One approach is to load all the data from the tables into an array and sort. I could also create a temporary table from a query and sort the data by date and department.
I already know how to dump tables into Excel without grouping the data. I also know how to place specific values into cells.
Can anyone provide some advice on the best approach using Access to create this report in Excel? Are there any sites with code examples similar to what I need? All ideas are welcome.
Thanks