Hello
Thanks very much for your help.
I have used the parameters as you said but can't seem to get it working.
When I add the form lookups into the query it gives a message saying the
query is too complex to be calculated. Here is my SQL if thats any help.
PARAMETERS [Forms]![frmReportMenu]![cmdName] DateTime,
[Forms]![frmReportMenu]![txtstartdate] DateTime,
[Forms]![frmReportMenu]![txtenddate] Text ( 255 );
TRANSFORM Sum(qryWorkingHoursName.TotalminutesWorked) AS
SumOfTotalminutesWorked
SELECT qryWorkingHoursName.txtName
FROM qryWorkingHoursName
WHERE (((qryWorkingHoursName.dtmDate) Between
[Forms]![frmReportMenu]![txtstartdate] And
[Forms]![frmReportMenu]![txtenddate]))
GROUP BY qryWorkingHoursName.txtName
PIVOT qryWorkingHoursName.dtmDate;
I am trying to get working hours for several different team members by date.
qryworkinghoursname just sums up the number of minutes worked AM and PM.
Thanks in advance for any help you can offer.
F Jones.
Duane Hookom said:
You must set the query parameter data types. Select Query->Parameters and
enter something like:
Forms!frmDates!txtStartDate Date/Time
--
Duane Hookom
MS Access MVP
--
Hello
A rather simple question I think:
I want a crosstab query to use values typed into a form by a user. I think
it is possible but can't remember how to set it up.
Any help greatly appreciated. I have looked through the past questions and
can't find anything.
Thanks