Hi,
I wonder if I can pick a few brains...?
I'm writing an access db (form based entry) to capture work against days. For example, a supervisor will pick a day and add work totals for particular memebers of staff.
I started writing this as a database where for each staff member record, there was a related record representing the work (this record would hold the date, description, amount etc). There would only be one of these records per staff member.
Seemed to be appropriate enough until it came to added records via a form. The form would use a calendar control to select all records for that day and display them in a grid for editing.
The problem was if there was no record for that staff member, the form would have to create it. If there was, it would have to edit it and not allow another to be added. All got a bit complicated and tricky to design - and I was wondering if there is a better underlying database structure I could use?
Note: not every staff member will have a record on each day. Pre-creating a table with a field for every day of the year seems OTT.
Any ideas more then welcome.
I wonder if I can pick a few brains...?
I'm writing an access db (form based entry) to capture work against days. For example, a supervisor will pick a day and add work totals for particular memebers of staff.
I started writing this as a database where for each staff member record, there was a related record representing the work (this record would hold the date, description, amount etc). There would only be one of these records per staff member.
Seemed to be appropriate enough until it came to added records via a form. The form would use a calendar control to select all records for that day and display them in a grid for editing.
The problem was if there was no record for that staff member, the form would have to create it. If there was, it would have to edit it and not allow another to be added. All got a bit complicated and tricky to design - and I was wondering if there is a better underlying database structure I could use?
Note: not every staff member will have a record on each day. Pre-creating a table with a field for every day of the year seems OTT.
Any ideas more then welcome.