Hi,
I'm having serious problems getting my report to work. I need to
generate a timesheet report which will contain info for one employee between
certain dates (one week's worth of dates). I have a table containing
records for each job done, the records contain date, employee name, job done
(a code representing the type of job), cost code (another code), regular
hours, and overtime hours. The tricky part is that more than one job can be
completed on the same date. This is how I went about it:
I have a query with paramaters to make sure the employee equals the one I
want and the date is for the current week so I have [Employee?] matching
employee name and [Start date?] and [End date?] which the date has to be
between. So after this query I have only records for the right employee and
dates.
Next I have a cross-tab query with job done and costcode as row headings and
the date (which i format here as the day of week) as the column heading. It
is totaling up the regular hours (I'd like to do both regular hours and
overtime hours at the same time but it only supports one for the cross-tab
query).
Then I have my report drawing information from the cross-tab query.. should
work great but.. it doesn't. First of all when I use the wizard to create
the report and try to choose the cross-tab query, none of the fields show
up. So I do it manually in design view and change the data source in the
Report properties to the cross-tab query which then asks me to enter the 3
paramaters. Then when I add a textbox into the report and tie up the data
source to the query it again asks for all 3 paramaters. Then when I run the
report it repeatedly asks me for the paramaters like it's stuck in an
infinite loop or something... It seems like this should work and I'm not
sure what to do, the paramaters are listed in the query as paramaters as
well.
Thanks in advance for any help you can offer me!
Rob