I'll start off by saying I am unsure if this should be in tables or queries section of the forums. In case it matters, I am using office 2007 (accdb format) for the sub database I am working on (which links to an office 2000 mdb format, for a few fields of information -- some of the id's are in linked tables).
I am trying to store job timestamps for each job. Each job goes through several departments (Milling, Grinding, etc). Within each department, it can go through different operations (Setup, Programming, Machining, etc). Each operation can start and stop multiple times.
The table layout I have been using thus far as an idea:
ticket_ID - time ticket # (primary key, auto number)
job_ID - the job work is being done on
department_ID - department work is being done in.
operation_ID - type of work being done (setup, programming, machining)
start - [Yes/No] Yes if starting work, no if stopping work.
employee_ID - Person doing the work.
made - qty parts made
scrap - qty parts scrap
reason - why they were scrapped
notes - other job notes
timestamp - Date/Time - Default =Now()
This stores all the start / stop times -- even accounting for multiple starts/stops throughout the day or week as needed, but I can't seem to figure out how you would now query/calculate the hours per job per department.
I thought I'd post this here, since my table design may be flawed. I'm building this and can change it completely, so this is the time to change it if the table needs rearranging. If it is good, hopefully someone can help me with the query part; or I can move the thread there.
Any help getting this working will be very appreciated.
I am trying to store job timestamps for each job. Each job goes through several departments (Milling, Grinding, etc). Within each department, it can go through different operations (Setup, Programming, Machining, etc). Each operation can start and stop multiple times.
The table layout I have been using thus far as an idea:
ticket_ID - time ticket # (primary key, auto number)
job_ID - the job work is being done on
department_ID - department work is being done in.
operation_ID - type of work being done (setup, programming, machining)
start - [Yes/No] Yes if starting work, no if stopping work.
employee_ID - Person doing the work.
made - qty parts made
scrap - qty parts scrap
reason - why they were scrapped
notes - other job notes
timestamp - Date/Time - Default =Now()
This stores all the start / stop times -- even accounting for multiple starts/stops throughout the day or week as needed, but I can't seem to figure out how you would now query/calculate the hours per job per department.
I thought I'd post this here, since my table design may be flawed. I'm building this and can change it completely, so this is the time to change it if the table needs rearranging. If it is good, hopefully someone can help me with the query part; or I can move the thread there.
Any help getting this working will be very appreciated.