Sorry to be a pain and ask another date question. The DB I’m working on has backend access tables and a single Linked SQL Server table which I’ll call “SQL table”.
The Access DB is for Agency Staff and my present problem only concerns the SQL table and one Access table.
The Access table has two pertinent columns; Date column and Hours column. These values would be typed in manually to the Access frontend via a continuous form for each employee. The weekly figures (all hours for that week) would be taken from an Agency timesheet and added at the end of the week to the FE. The Weekending date entered happens to fall on a Saturday.
Weekending = 05/07/2008. Hours = 35
Just to mention, there is more information i.e. Rate of pay field. The rest is done by calculated fields; RateOfPay*Hours, VAT etc, however, this wouldn’t be relevant.
the two values (hours, Date) are all that's needed. There are no breaks calculated, no double shifts and no timestamps used.
The SQL Server table is taken from another SQL Server DB which has a third party frontend and all employees fill in regardless of Agency staff or permanent staff. This table stores the hours and dates on a day to day basis:
Date = 16/07/2008. DailyHours = 7
The Access DB has to have the ability to compare both tables values for these employees on a weekly basis. This is why I need to find a way to format, in some way, the SQL Server table values within Access so that it matches the Access tables layout.
So, for the SQL table, I'd have to be able to take a particular day, say a Saturday, use that as the weekending date and add all the hours from the SQL table together on a weekly basis so that all of the daily hours can be added to the week to form the 35 hours. That would mean finding a way to group the daily dates together into weeks so that I can add the sum of hours for that week.
Just to note, I'll be using both tables for the forms record source and linking both with the Employee firstname, lastname and Weekend date fields so that Users can compare the values on the form.
At the moment I’m looking at date calculations like the format function and thinking about possibilities of having this in a query or temporary table to make this possible, however, any help with this would be much appreciated.
Thanks.
The Access DB is for Agency Staff and my present problem only concerns the SQL table and one Access table.
The Access table has two pertinent columns; Date column and Hours column. These values would be typed in manually to the Access frontend via a continuous form for each employee. The weekly figures (all hours for that week) would be taken from an Agency timesheet and added at the end of the week to the FE. The Weekending date entered happens to fall on a Saturday.
Weekending = 05/07/2008. Hours = 35
Just to mention, there is more information i.e. Rate of pay field. The rest is done by calculated fields; RateOfPay*Hours, VAT etc, however, this wouldn’t be relevant.
the two values (hours, Date) are all that's needed. There are no breaks calculated, no double shifts and no timestamps used.
The SQL Server table is taken from another SQL Server DB which has a third party frontend and all employees fill in regardless of Agency staff or permanent staff. This table stores the hours and dates on a day to day basis:
Date = 16/07/2008. DailyHours = 7
The Access DB has to have the ability to compare both tables values for these employees on a weekly basis. This is why I need to find a way to format, in some way, the SQL Server table values within Access so that it matches the Access tables layout.
So, for the SQL table, I'd have to be able to take a particular day, say a Saturday, use that as the weekending date and add all the hours from the SQL table together on a weekly basis so that all of the daily hours can be added to the week to form the 35 hours. That would mean finding a way to group the daily dates together into weeks so that I can add the sum of hours for that week.
Just to note, I'll be using both tables for the forms record source and linking both with the Employee firstname, lastname and Weekend date fields so that Users can compare the values on the form.
At the moment I’m looking at date calculations like the format function and thinking about possibilities of having this in a query or temporary table to make this possible, however, any help with this would be much appreciated.
Thanks.