424,303 Members | 1,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,303 IT Pros & Developers. It's quick & easy.

using a cross-tab query in a report...

P: n/a
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
Aug 9 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Not sure why nobody got to my post but I have solved my problem, and in the
nature of being a good message board person I'll answer my own question.
First of all I decided to use a form instead of parameters for the query
itself. I made sure to register the form's paramaters in both querys I used
since one relied on the other and then I changed the cross-tab query so that
it automatically produced columns for all the days of the week instead of
whichever may be there and it all worked.

Rob

"Rob Woodworth" <bl*@bla.comwrote in message
news:eb**********@hisatsinom.cs.arizona.edu...
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

Aug 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.