Hi again, I am boggled by another problem with a staff table and a related table for staff hours.
I have 2 tables, tbl_Staff and tbl_Staff_hours, they are related by StaffID which is just a number (their proper staff number, no autonumber)
What I would like to do is display all staff and next to their name, have the fields from tbl_Staff_hours ready to accept data, so the whole things looks like a data grid.
If i make a new record for all the staff each day in tbl_Staff_Hours, that would do it, but it is an awful waste of records as staff don't always work every day.
basics of the tables are below:
--------------------
tbl_Staff
StaffNo
FirstName
LastName
OrderID - preset number to split staff into their groups by order
--------------------
tbl_Staff_Hours
StaffHoursID Auto
SDate = Date()
StaffNo
SignOn
MealStart
MealFinish
SignOff
--------------------
There are around 50ish staff ordered by OrderID, that's the easy part, but getting the records to return for each of them so i can add, edit their hours, hard part.
Please lend me some ideas on how to do this as it has been plaguing me for a while now.
Thanks
I have 2 tables, tbl_Staff and tbl_Staff_hours, they are related by StaffID which is just a number (their proper staff number, no autonumber)
What I would like to do is display all staff and next to their name, have the fields from tbl_Staff_hours ready to accept data, so the whole things looks like a data grid.
If i make a new record for all the staff each day in tbl_Staff_Hours, that would do it, but it is an awful waste of records as staff don't always work every day.
basics of the tables are below:
--------------------
tbl_Staff
StaffNo
FirstName
LastName
OrderID - preset number to split staff into their groups by order
--------------------
tbl_Staff_Hours
StaffHoursID Auto
SDate = Date()
StaffNo
SignOn
MealStart
MealFinish
SignOff
--------------------
There are around 50ish staff ordered by OrderID, that's the easy part, but getting the records to return for each of them so i can add, edit their hours, hard part.
Please lend me some ideas on how to do this as it has been plaguing me for a while now.
Thanks