Forum Discussion

Jeanne Cote's avatar
Jeanne Cote
Copper Contributor
Aug 04, 2020

Report with each week across the page

I have to create a report where the main information is the week number. I have a table in which each week number is associated with a date (TBLperiods). I then have a table for the companies (TBLcompanies) and finally I have a table for the hours worked (TBLhours).

I created a Query (QRYhours) where TBLcompanies is linked to TBLhours by the company name and TBLperiods is linked with a Code as I have 2 different types of periods (PeriodA and PeriodB).

I need to create a report that would look like this

 Week1Week2Week3Week4
 DateDateDateDate
COMPANY1    
employee120.0020.0020.5020.00
employee210.5010.5010.5011.00
employee335.009.0035.0035.00
employee48.258.258.509.00
     
COMPANY2    
employee130.0028.5030.0030.00
employee27.007.0010.257.00
employee34.004.004.008.00
employee415.2522.0022.0022.00

 

I am really not sure how to go about getting each week across the page
Any help would be greatly appreciated
Jeannie

4 Replies

  • George_Hepworth's avatar
    George_Hepworth
    Silver Contributor

    Jeanne Cote 

     

    Let's step back and get a more detailed description of each of these tables. You can either provide screenshots or a sample accdb with enough sample data to see how it needs to work. Remove or replace sensitive data, of course.

     

    There are probably a handful of different ways to get to a usable result, but knowing the actual structures involved makes it possible to offer one of them.

    • Jeanne Cote's avatar
      Jeanne Cote
      Copper Contributor

      George_Hepworth - Thank you for your reply, the DB is in French so I will try to explain the tables

       

      TBLcompany

      - Company: name of the company

      - Code: code assigned for the pay period use (A or B)

       

      TBLhours

      - Company: same as TBLcompany

      - Name: employee name

      - PaidOn: date of the period

       

      TBLperiodA

      - Week:  Week number

      - Period: Date for the period

      - Code: same as the one in TBLcompany

       

      Let me know if you need more information

      Thank

      Jeannie

Resources