ParachuteTechnology
New member
- Local time
- Today, 05:51
- Joined
- Jan 6, 2014
- Messages
- 3
tblTimeEntry records individual time slips for attorneys keeping track of their time. Each slip records the client, attorney, time, rate, and value (time * rate) of the slip.
tblPeople holds all the timekeepers and their current rate. Their rates change once a year.
tblCustomRate will hold the exceptions, and this is what I need help implementing.
How I imagine tblCustomRate will be set up is as follows (and this may be how it's wrong):
Columns for each timekeeper. Each record is a client entry.
When a new time entry gets entered, as it gets saved into tblTimeEntry, it should check to see if the client number is one that has a record on tblCustomRate. If it does, it should find the column for the timekeeper and use that rate.
I can't imagine how this works in my head. I could add columns to the tblPeople for each client that gets a custom rate and use IF statements to get it to add, but that's a lot of legwork and code for a few clients.
tblTimeEntry
TimeID (primary key)
ClientID
TKFN (Timekeeper First Name)
Rate
Value
tblPeople
PersonID (primary key)
TKFN
CurRate (Current rate)
If it matters, this is Access front end with SQL Express tables. It's few and far between that I set up new People and it would be few and far between that there would be any custom rates (currently, there would be 2 out of 2000). People's rates change, but the time slips they entered at their old rate should stay at their old rate. If they were only worth $100/hour in 2010, but now they're worth $200/hour, the 2010 slips stay at the $100/hour rate.
Thanks
tblPeople holds all the timekeepers and their current rate. Their rates change once a year.
tblCustomRate will hold the exceptions, and this is what I need help implementing.
How I imagine tblCustomRate will be set up is as follows (and this may be how it's wrong):
Columns for each timekeeper. Each record is a client entry.
When a new time entry gets entered, as it gets saved into tblTimeEntry, it should check to see if the client number is one that has a record on tblCustomRate. If it does, it should find the column for the timekeeper and use that rate.
I can't imagine how this works in my head. I could add columns to the tblPeople for each client that gets a custom rate and use IF statements to get it to add, but that's a lot of legwork and code for a few clients.
tblTimeEntry
TimeID (primary key)
ClientID
TKFN (Timekeeper First Name)
Rate
Value
tblPeople
PersonID (primary key)
TKFN
CurRate (Current rate)
If it matters, this is Access front end with SQL Express tables. It's few and far between that I set up new People and it would be few and far between that there would be any custom rates (currently, there would be 2 out of 2000). People's rates change, but the time slips they entered at their old rate should stay at their old rate. If they were only worth $100/hour in 2010, but now they're worth $200/hour, the 2010 slips stay at the $100/hour rate.
Thanks