473,699 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2762
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.comwro te in message
news:eb******** **@hisatsinom.c s.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
2423
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 support check printing. > Is there a Python check printing application kicking around? OK, I'll assume silence means "no", so new question: What is the current best practice for cross platform printing of PostScript files from Python?
16
4335
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 specific number of points. Currently, any client of these DFT classes must switch on the number of points in the profile and instanciate the correct DFT algorithm.
3
3108
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 rectangles with a big red cross in it. Pressed a button (the one I thought might be ok). My file appeared to load. Then when I clicked on any button on my form, the button was replaced with a white rectangle with a big red cross in it.
9
1841
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 to do: there is TABLE1, TABLE2, and TABLE3 i want to select each row from TABLE1, do some analysis on the data of that row, and then perform an insert of some data into TABLE2, and some
23
6533
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 queue, grab it and run a system command. Now I want to make sure that system command doesn't hang forever, so I need some way to kill the command and have the worker thread go back to work waiting for another queue entry.
2
2791
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 solaris), does there exists any kind of midware like odbc? 2. I search on the internet, and find most of the examples are based on PHP. Is there any c++ examples? 3.Once I chose odbc, does that mean that whatever kind of database I
32
2103
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 advance.
8
9414
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 document.write( ) method? For a simplified example, I have two Web pages. Page 1 uses JavaScript with the following: htmlData = "<B>This is bold text.</B>"; document.write(htmlData);
42
4007
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 procedure editing work too? -- PeteCresswell
0
8621
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9184
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8891
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7759
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5878
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3061
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.