Ill try to keep things as simple and informative as possible.
I am putting together a database for a child minding agency. The idea is to record Employee Time and Child Time, then from that data, produce totals of various items for invoicing and wages etc.
Where I am now.....
I have 3 queries to gather the information from the tables and forms used to clock staff in and out, record mileage and any expenses they have inured during the day. The forms used to record the data daily are queried into months:
- Total Monthly Hours [Employee Name] [Date By Month] [Total Hours]
- Total Monthly Millage [Employee Name] [Date By Month] [Total Mileage]
- Total Monthly Expenses [Employee Name] [Date By Month] [Total Expenses]
One more query to gather the totals of each.
4. [Employee Name] [Date By Month] [Total Hours] [Total Mileage] [Total Expenses]
My next step now is to use the query to calculate what is owed to the employee for each Wages, Mileage and Expenses so I end up with:
- [Employee Name] [Date By Month] [Total Hours] [Total Mileage] [Total Expenses] [Balance Due Wages] [Balance Due Mileage] [Balance Due Expenses]
I would love for this to be as simple as writing the expressions in the builder however, some employees are paid differently and price per mile changes (info listed in a separate table [Employee Name] [Employee Hourly Rate] [Employee Price Per Mile])
My question is how can I tell access (query builder) to get the correct information when calculating the
[Total Hours (from query 4)] * [Employee Hourly Rate (from Separate Table)]
Understanding the way access creates queries based on different fields from different sources is one thing but understanding how it relates them to the right field is difficult. This will really help when it comes to sorting the other half of this job out.
Thanks All