Here is my situation:
I have an Access 97 database where I track technicians time on work orders through a table, this would include gl codes, hours spent on jobs, tech names, and dates.
I have created a crosstab query as follows:
PARAMETERS [Forms]![tmsht_dial_bx]![beg_date] DateTime, [Forms]![tmsht_dial_bx]![end_date] DateTime;
TRANSFORM Sum(Nz([daily].[reg_hrs])+Nz([daily].[ot_hrs])+Nz([daily].[dt_hrs])) AS hrs
SELECT tch_tbl.emp_num AS [employee no], tch_tbl.technm AS technician, daily.gl_cde AS [gl code]
FROM tch_tbl INNER JOIN daily ON tch_tbl.techid = daily.techid
WHERE (((daily.dt) Between [Forms]![tmsht_dial_bx]![beg_date] And [Forms]![tmsht_dial_bx]![end_date]))
GROUP BY tch_tbl.emp_num, tch_tbl.technm, daily.gl_cde
PIVOT daily.dt;
The parameters are based on a Form that I have where I can run the query between two dates. The problem I have is that when I run the query I only retrieve dates that are fixed to the times when the technician's work. I need to also include the weekends on my payroll report. How do I include dates in my query that don't have time attached to it? Please let me know if you have any ideas.
Thanks
Noel
I have an Access 97 database where I track technicians time on work orders through a table, this would include gl codes, hours spent on jobs, tech names, and dates.
I have created a crosstab query as follows:
PARAMETERS [Forms]![tmsht_dial_bx]![beg_date] DateTime, [Forms]![tmsht_dial_bx]![end_date] DateTime;
TRANSFORM Sum(Nz([daily].[reg_hrs])+Nz([daily].[ot_hrs])+Nz([daily].[dt_hrs])) AS hrs
SELECT tch_tbl.emp_num AS [employee no], tch_tbl.technm AS technician, daily.gl_cde AS [gl code]
FROM tch_tbl INNER JOIN daily ON tch_tbl.techid = daily.techid
WHERE (((daily.dt) Between [Forms]![tmsht_dial_bx]![beg_date] And [Forms]![tmsht_dial_bx]![end_date]))
GROUP BY tch_tbl.emp_num, tch_tbl.technm, daily.gl_cde
PIVOT daily.dt;
The parameters are based on a Form that I have where I can run the query between two dates. The problem I have is that when I run the query I only retrieve dates that are fixed to the times when the technician's work. I need to also include the weekends on my payroll report. How do I include dates in my query that don't have time attached to it? Please let me know if you have any ideas.
Thanks
Noel