473,287 Members | 3,253 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

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

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
1 2729
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: David Isaac | last post by:
"Alan Isaac" <aisaac0@verizon.net> wrote in message news:_A34e.2207$1r6.248@trnddc02... > I'd like to try personal financial management using Python. > I just found PyCheckbook, but it does not...
16
by: 4Space | last post by:
I've hit something of a snag. Problem: In a DSP application we have data profiles with a varying number of points. We have a number of Discrete Fourier transforms that are optimised for a...
3
by: rollasoc | last post by:
Hi, Doing a bit of system testing on a Windows 98 laptop. (.Net 1.1 app). Did a bit of testing. Loaded a previously saved file. A gray box appeared with the text and buttons all white...
9
by: iaesun | last post by:
i'm trying to write a batch that will perform a complex task using set-based selects instead of a row-based cursor. let me know if you can help me figure out how. description of what i'm trying...
23
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the...
2
by: xiaotom | last post by:
I want my software to be independant of operation system and databases. That's why I want to use odbc, and don't want to use MFC. Here I have some questions to ask: 1. On unix (like sun...
32
by: Pravin | last post by:
hi Is it possible to open an executable program like NOTEPAD(win) using C-Program...(other than the function system() )? if so,please provide me with an eg code...if not why? Thanks in...
8
by: '69 Camaro | last post by:
Perhaps I'm Googling for the wrong terms. Does anyone have links to examples of the syntax necessary to read the HTML on another Web page when that HTML is produced from JavaScript using the...
42
by: (PeteCresswell) | last post by:
I skimmed the MS spiel at http://msdn.microsoft.com/sql/express, and noted the part about "all inside the Visual Studio 2005 environment". Do the older SQL server tools for security and stored...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.