I am sure this isn't terribly complicated, but I can't even think where to start at the minute! Basically I have a database which consists of two tables. One with data about employees and another which may have several related rows about an employees absence. Below are the fields in each table that matter for this purpose:
EmpData
EmpNo (Employee Number)
Name
DOB
etc.
AbsenceData
RefNo
EmpNo (Employee Number)
StartDate
EndDate
The primary keys are in italic and the table names are in bold. They are linked by EmpNo and there can be several records in the AbsenceData table for each Employee.
I need to be able to enter a start and end date into a query eg. 01/06/04 and 30/06/04 and have a list provided which summarises all employees who have had time off in this period and how many days absence they have had (based on a working work of Mon-Fri) excluding weekends.
Any ideas?
EmpData
EmpNo (Employee Number)
Name
DOB
etc.
AbsenceData
RefNo
EmpNo (Employee Number)
StartDate
EndDate
The primary keys are in italic and the table names are in bold. They are linked by EmpNo and there can be several records in the AbsenceData table for each Employee.
I need to be able to enter a start and end date into a query eg. 01/06/04 and 30/06/04 and have a list provided which summarises all employees who have had time off in this period and how many days absence they have had (based on a working work of Mon-Fri) excluding weekends.
Any ideas?