J
jpgoossen via AccessMonster.com
Hi,
I have two tables. One with employees, which include a start date and - if
already determined!) an end date of employment. For each week that people
work - which is for the whole period that they are under contract - they are
supposed to fill in hour sheets. These are then entered by a data entry
person into a database. In that database we have the table EMPLOYEE with
amongst other the fields Name, Startdate and Enddate.
In the table HOURS we save all the hours that people work, in weekly records.
The Important fields in this table are Employee_ID (link to a normalised
Employee Name/Address/Place table), LocationID (limnked to a table that
contains all possible worklocations) and WorkweekID (linked to a normalised
table with all the weeks between now and 2017, on weeknumber and year, and
also showing the start and end dates of each week).
Now, each employee is supposed to fill in an hour sheet every week, like I
stated. But seeing the large number of sheets, it is not always clear whther
all sheets are in, or if one particular employee of one particular place of
employment.
What I want to accomplish, is set up a report that shows any MISSING hour
sheets (at least, not typed in), sorted on either weeknumber, location or
employee or just a total list of all missing hour sheets.
I think it requires matching employees, combined with their contract dates,
agains the existence of the combination weeknumber/employeeID in the table of
Hoursheets. Or better, the missing of any records for their employment period.
Of course, it would be useless to search any further than just the date of
this week, since no one knows about future employment.
I can't seem to get my head around this and keep running in circles on how
to accomplish this. And on how to give the users an option to select periods
or locations or employees by themselves. Any ideas of tips are very welcome.
TIA,
Patrick
I have two tables. One with employees, which include a start date and - if
already determined!) an end date of employment. For each week that people
work - which is for the whole period that they are under contract - they are
supposed to fill in hour sheets. These are then entered by a data entry
person into a database. In that database we have the table EMPLOYEE with
amongst other the fields Name, Startdate and Enddate.
In the table HOURS we save all the hours that people work, in weekly records.
The Important fields in this table are Employee_ID (link to a normalised
Employee Name/Address/Place table), LocationID (limnked to a table that
contains all possible worklocations) and WorkweekID (linked to a normalised
table with all the weeks between now and 2017, on weeknumber and year, and
also showing the start and end dates of each week).
Now, each employee is supposed to fill in an hour sheet every week, like I
stated. But seeing the large number of sheets, it is not always clear whther
all sheets are in, or if one particular employee of one particular place of
employment.
What I want to accomplish, is set up a report that shows any MISSING hour
sheets (at least, not typed in), sorted on either weeknumber, location or
employee or just a total list of all missing hour sheets.
I think it requires matching employees, combined with their contract dates,
agains the existence of the combination weeknumber/employeeID in the table of
Hoursheets. Or better, the missing of any records for their employment period.
Of course, it would be useless to search any further than just the date of
this week, since no one knows about future employment.
I can't seem to get my head around this and keep running in circles on how
to accomplish this. And on how to give the users an option to select periods
or locations or employees by themselves. Any ideas of tips are very welcome.
TIA,
Patrick