By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,510 Members | 1,497 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,510 IT Pros & Developers. It's quick & easy.

design question

P: n/a
JLM
Does anyone know of an example of an Access ("leave tracking," "employee
hours worked," "sick hours used," "vacation hours accumulated," etc.)
database I could look at?

I'm having conceptual problems with creating tables that elegantly holds
Daily data for multiple varieties of time off and comp time. I must be able
to perform calculations on these fields. I can do my own queries, reports,
etc. but the elegant part has me scratching my head.

Thanks in advance,
jeff
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
TblEmp
EmpID
FName
LName
HireDate

TblLeave
LeaveID
EmpID
LeaveStartDate
LeaveEndDate

TblSickHours
SickHoursID
EmpID
SickStartDate
SickStartTime
SickEndDate
SickEndTime

TblVacation
VacationID
EmpID
VacStartDate
VacStartTime
VacEndDate
VacEndTime

TblHolidays
HolidayName
HolidayDate

If it's ot a holiday and the employee is not on leave, not sick and not on
vacation, then the employee must be working. So you don't need a table fpr hours
worked.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"JLM" <je**********@colostate.edu> wrote in message
news:40******@news.ColoState.EDU...
Does anyone know of an example of an Access ("leave tracking," "employee
hours worked," "sick hours used," "vacation hours accumulated," etc.)
database I could look at?

I'm having conceptual problems with creating tables that elegantly holds
Daily data for multiple varieties of time off and comp time. I must be able
to perform calculations on these fields. I can do my own queries, reports,
etc. but the elegant part has me scratching my head.

Thanks in advance,
jeff

Nov 12 '05 #2

P: n/a
assuming different types of work hours (regular, overtime, double
time), you might need to track hours worked

so you'd have types of hours
regular time
overtime
double time
leave
sick
vacation
jury duty
vacation
holiday
etc

so you'd track that with
tblTimeType
timeTypeId (pk)
timeType
employeePaid (yes/no)

and you'd need just one table to track by employee
tblTimeCapture
timeCaptureId (pk)
empId (fk)
timeTypeId (fk)
startDate
startTime
endDate
endTime

"PC Datasheet" <sp**@nospam.spam> wrote in message news:<yr*******************@newsread1.news.atl.ear thlink.net>...
TblEmp
EmpID
FName
LName
HireDate

TblLeave
LeaveID
EmpID
LeaveStartDate
LeaveEndDate

TblSickHours
SickHoursID
EmpID
SickStartDate
SickStartTime
SickEndDate
SickEndTime

TblVacation
VacationID
EmpID
VacStartDate
VacStartTime
VacEndDate
VacEndTime

TblHolidays
HolidayName
HolidayDate

If it's ot a holiday and the employee is not on leave, not sick and not on
vacation, then the employee must be working. So you don't need a table fpr hours
worked.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"JLM" <je**********@colostate.edu> wrote in message
news:40******@news.ColoState.EDU...
Does anyone know of an example of an Access ("leave tracking," "employee
hours worked," "sick hours used," "vacation hours accumulated," etc.)
database I could look at?

I'm having conceptual problems with creating tables that elegantly holds
Daily data for multiple varieties of time off and comp time. I must be able
to perform calculations on these fields. I can do my own queries, reports,
etc. but the elegant part has me scratching my head.

Thanks in advance,
jeff

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.