Daune, Thanks for your input and help. I did a copy and
paste of what you sent about changing the SQL. When I went
to save it I got the following error message, Invalid
bracketing of namne'[SumOfHoursWorked]'. I tried to type
the change directly into the SQL and when I went to save I
got the following error message, Syntax error in Transform
statement. This is what I typed into the SQL and at the
location that you indicated, , Max([Start Date]) as
StartDate, Max([End Date]) as EndDate Is this what you
meant by changing the SQL?? Anymore suggestions?? Thanks
again Vern
-----Original Message-----
Change your sql to:
PARAMETERS [start date] DateTime, [end date] DateTime;
TRANSFORM Sum([Main Header].[Hours Worked]) AS [SumOfHours
Worked], Max([Start Date]) as StartDate, Max([End Date]) as EndDate
SELECT [Main Header].[Employee ID]
FROM [Main Header]
WHERE ((([Main Header].[Date/Time]) Between [Start date]
And [End date]))
GROUP BY [Main Header].[Employee ID]
PIVOT [Main Header].Activity_Type
WITH OWNERACCESS OPTION;
Then you can use StartDate and EndDate in your report expressions.
--
Duane Hookom
MS Access MVP
Daune, Here it is.... Vern
PARAMETERS [start date] DateTime, [end date] DateTime;
TRANSFORM Sum([Main Header].[Hours Worked]) AS [SumOfHours
Worked]
SELECT [Main Header].[Employee ID]
FROM [Main Header]
WHERE ((([Main Header].[Date/Time]) Between [Start date]
And [End date]))
GROUP BY [Main Header].[Employee ID]
PIVOT [Main Header].Activity_Type
WITH OWNERACCESS OPTION;
-----Original Message-----
Please share your SQL of the query.
--
Duane Hookom
Microsoft Access MVP
message
Duane, Thanks for your reply questions.... The PRINT
MENU form stays open. Attached is a picture of what the
screen looks like and the pop up window that Access
sends
when I put in dates and then click on the print icon.
This report is a cross tab query. I wanted the dates in
the Print Menu to work and not have these pop up windows
to occur...
Vern
-----Original Message-----
Does the form stay open? What is the exact prompt in
the
window pop-ups?
--
Duane Hookom
MS Access MVP
message
I have a form named print_screen, in this form I
have a
set of controls named start_date and another named
end_date. These two control boxes are referenced in a
cross tab query. When I want to print a report that
uses
this query, and I insert the start date and end date
and
click on the print button, another window pops up and
ask
for the start date and then the end date again. Any
way
to
stop this from happening and get Access to use the
first
two inputs on the print_screen form??? Thanks for
your
support. Vern
.
.
.