A
Aria
Hi,
I don’t want to post such a dumb question but I don’t know what else to do.
I could really use some help. I’m almost finished creating a my db for my
school but a situation that has been an issue all along has taken a turn for
the worse. My db tracks keys and employee info (personal and school related).
I now need to track classroom coverage for urgent/emergency situations (ex.
Teacher A is suddenly ill and needs to leave, who will cover the class?) If I
cannot find a volunteer, an administrator will have to force the issue. This
info will also be used for payroll because staff sometimes makes side deals
without informing the office and then sometimes months later, turns in a
timesheet without enough information.
I added the following tables:
tblClassSchedule
**************
PeriodID
ClassPeriod
TeacherPrep
tblCoverage
***********
PeriodID (FK)*
AbsenteeEmpID (FK to tblEmployees)* *4field PK
CoverageEmpID (FK to tblEmployees)*
CoverageDate *
ReasonID (FK to tblCoverageReasons)
Explanation (if the reason is School/District Business or Work on
Site)
tblCoverageReasons
*****************
ReasonID (PK)
CoverageReason
I based the form on a query. When I switched from design view to form view,
it was blank. Well, the labels were still there but there weren’t any
controls to input information.
SQL:
SELECT tblCoverage.PeriodID, tblCoverage.AbsenteeEmpID,
tblCoverage.CoverageEmpID, tblCoverage.CoverageDate,
tblCoverage.CoverageTime, tblCoverage.Explanation,
tblClassSchedule.ClassPeriod, tblEmployees.EmpID, tblEmployees.Active,
tblEmployees.FirstName, tblEmployees.LastName, tblClassSchedule.TeacherPrep,
tblEmployees.EmployeeType, tblClassifications.ClassID,
tblClassifications.ClassDescription, tblTitlesEmps.TitleID,
tblTitles.TitleDescription, tblCoverageReasons.ReasonID,
tblCoverageReasons.CoverageReason
FROM tblTitles INNER JOIN (((tblClassifications INNER JOIN tblEmployees ON
tblClassifications.ClassID = tblEmployees.ClassID) INNER JOIN
(tblCoverageReasons INNER JOIN (tblClassSchedule INNER JOIN tblCoverage ON
tblClassSchedule.PeriodID = tblCoverage.PeriodID) ON
tblCoverageReasons.ReasonID = tblCoverage.ReasonID) ON (tblEmployees.EmpID =
tblCoverage.CoverageEmpID) AND (tblEmployees.EmpID =
tblCoverage.AbsenteeEmpID)) INNER JOIN tblTitlesEmps ON tblEmployees.EmpID =
tblTitlesEmps.EmpID) ON tblTitles.TitleID = tblTitlesEmps.TitleID
WHERE (((tblEmployees.Active)=True) AND ((tblEmployees.EmployeeType)=1 Or
(tblEmployees.EmployeeType)=2) AND
((tblClassifications.ClassDescription)="Certificated" Or
(tblClassifications.ClassDescription)="Substitute"));
I know my form has issues but it has me questioning other parts too. My
query may pull from too many tables or maybe the structure for this part is
incorrect. I’m sorry this is so long but I wanted to post enough information
so that someone could spot what I do not see and get me back on track.
I don’t want to post such a dumb question but I don’t know what else to do.
I could really use some help. I’m almost finished creating a my db for my
school but a situation that has been an issue all along has taken a turn for
the worse. My db tracks keys and employee info (personal and school related).
I now need to track classroom coverage for urgent/emergency situations (ex.
Teacher A is suddenly ill and needs to leave, who will cover the class?) If I
cannot find a volunteer, an administrator will have to force the issue. This
info will also be used for payroll because staff sometimes makes side deals
without informing the office and then sometimes months later, turns in a
timesheet without enough information.
I added the following tables:
tblClassSchedule
**************
PeriodID
ClassPeriod
TeacherPrep
tblCoverage
***********
PeriodID (FK)*
AbsenteeEmpID (FK to tblEmployees)* *4field PK
CoverageEmpID (FK to tblEmployees)*
CoverageDate *
ReasonID (FK to tblCoverageReasons)
Explanation (if the reason is School/District Business or Work on
Site)
tblCoverageReasons
*****************
ReasonID (PK)
CoverageReason
I based the form on a query. When I switched from design view to form view,
it was blank. Well, the labels were still there but there weren’t any
controls to input information.
SQL:
SELECT tblCoverage.PeriodID, tblCoverage.AbsenteeEmpID,
tblCoverage.CoverageEmpID, tblCoverage.CoverageDate,
tblCoverage.CoverageTime, tblCoverage.Explanation,
tblClassSchedule.ClassPeriod, tblEmployees.EmpID, tblEmployees.Active,
tblEmployees.FirstName, tblEmployees.LastName, tblClassSchedule.TeacherPrep,
tblEmployees.EmployeeType, tblClassifications.ClassID,
tblClassifications.ClassDescription, tblTitlesEmps.TitleID,
tblTitles.TitleDescription, tblCoverageReasons.ReasonID,
tblCoverageReasons.CoverageReason
FROM tblTitles INNER JOIN (((tblClassifications INNER JOIN tblEmployees ON
tblClassifications.ClassID = tblEmployees.ClassID) INNER JOIN
(tblCoverageReasons INNER JOIN (tblClassSchedule INNER JOIN tblCoverage ON
tblClassSchedule.PeriodID = tblCoverage.PeriodID) ON
tblCoverageReasons.ReasonID = tblCoverage.ReasonID) ON (tblEmployees.EmpID =
tblCoverage.CoverageEmpID) AND (tblEmployees.EmpID =
tblCoverage.AbsenteeEmpID)) INNER JOIN tblTitlesEmps ON tblEmployees.EmpID =
tblTitlesEmps.EmpID) ON tblTitles.TitleID = tblTitlesEmps.TitleID
WHERE (((tblEmployees.Active)=True) AND ((tblEmployees.EmployeeType)=1 Or
(tblEmployees.EmployeeType)=2) AND
((tblClassifications.ClassDescription)="Certificated" Or
(tblClassifications.ClassDescription)="Substitute"));
I know my form has issues but it has me questioning other parts too. My
query may pull from too many tables or maybe the structure for this part is
incorrect. I’m sorry this is so long but I wanted to post enough information
so that someone could spot what I do not see and get me back on track.