W
WAstarita
I have a payroll database that daily I have to check if everyone's time
sheet has been submitted. I would like to automate the query by being
about to supply a range of dates to pivot on. For example
Select * From TimeSheets
....
.....
Pivot on Between #11/12/2006# and #11/19/2006#
Output
11/12/2006 11/13/2006 11/14/2006
Tech1 Yes No Yes
Tech2 Yes Yes No
Tech3 No Yes No
I know I can build the query in VBA easily but I was hoping for a SQL
way of doing it, just passing parameters.
Any suggestions, thanks
sheet has been submitted. I would like to automate the query by being
about to supply a range of dates to pivot on. For example
Select * From TimeSheets
....
.....
Pivot on Between #11/12/2006# and #11/19/2006#
Output
11/12/2006 11/13/2006 11/14/2006
Tech1 Yes No Yes
Tech2 Yes Yes No
Tech3 No Yes No
I know I can build the query in VBA easily but I was hoping for a SQL
way of doing it, just passing parameters.
Any suggestions, thanks