473,508 Members | 2,206 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crosstab results in a report

3 New Member
Hi

I created a table to track a certain document type in construction management.
The fields are an Unique No, Description, Descipline ( Civil, Architectural, Mechanical, Electrical, etc ), Responible, Status ( A, B, C, D, etc ), etc.
I created a crosstab query to get this result :

By Descipline

Total Submitted Pending Total with Status A Total with Status B , C, D etc.

Based on the results i created a report also.

Now the problem is the report is giving error if even one of the result is missing in the cross tab query results..

Please help me.
Jul 24 '11 #1
3 1824
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Because the columns in crosstab queries may vary in line with the range of pivot values within the current data they are not altogether the best source for a report. A report is not intended to handle fields that were there when the report was created but which are no longer present in the underlying data at runtime.

If the full set of the headings can be defined in advance, even if the actual headings which are in the current run cannot be known, you can resolve the problem within your crosstab query itself by defining the column headings as a list.

In the query editor right-click on the field you have defined as the column heading (which may be the Status field, although you do not say so above). In the Column Headings property enter the complete list of values which your column headings can take, separated by commas. If these are text values enclose each entry in double-quotes, like this:

"First Value", "Second Value", "Third Value", "Fourth Value"

Save the query when you finish entering the list.

You will find when you run the query that all of the columns will be present, even if there are no entries matching that column in the current data (in which case the computed total will be returned as a null). This in turn will ensure that your report does not fail as a result of a missing column heading.

-Stewart
Jul 24 '11 #2
Siraj Nawas
3 New Member
Thank you so much Mr. Stewart.
It is working fine and this is exactly i want. ofcourse the Status column which has the values A, B , C and D. My crosstab column headings are infact these status only. Now I am experiencing a problem as i dont know what to do with the the values which are not included in these status , I just want show the empty calues to be counted and shwon as "Pending "
Please help me.
Jul 24 '11 #3
Siraj Nawas
3 New Member
Thanks Stewart. Indeed it was a great help.
I solved the problem, but dont know whwther it is the correct method. I changed the column headings as ""A","B","C","D","<>" "

Wish I would learn more from you.

Siraj Nawas
Jul 24 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2688
by: Helpdesk Man | last post by:
Hello SQL and Crystal Reports friends, I am trying to make a report and need some help please. It is a helpdesk database. Jobs are logged, and then closed. Each of these events is...
1
1907
by: mehl | last post by:
Hello -- We have annual values for several 'MeasName': Capital expenditure increment Growth rate Subscribers The table has these fields: Year MeasName
1
2285
by: Steve | last post by:
I have looked through the newsgroup for an answer to this but haven't been able to find anything resembling my situation. What I want to do is relatively simple, I think. I have a crosstab...
2
1907
by: Greg Bale | last post by:
Hi. (this is s repeat post from MS community newsgroup) I am building a form for people to use to analyse the data in my Access2000 database. The SQL is built up in VBA depending on control...
15
4385
by: Richard Hollenbeck | last post by:
I tried to ask this question before on the 14th of January but I never got a reply. I'm still struggling with the problem. I'll try to rephrase the question: I have a crosstab query with rows...
3
3581
by: deejayquai | last post by:
Hi I've created a crosstab query and displayed it as a sub-report in my main report. This is fine until the data changes and the column names become incorrect. I know I have to create a...
4
2440
by: deejayquai | last post by:
I've worked through the MS KB example and it doesn't really help me as I missing the basics of what the code is doing. I've posted a couple of times here in thsi group but with no success. Could...
2
1834
by: kabradley | last post by:
Hello everyone. I have three reports that I would like to put into one main report. I tried creating the main report and then putting three seperate subreports in the detail section of the parent...
1
1243
by: seagullino | last post by:
Hello, I developed a very simple form in which the user enters a keyword and the database returns all of the records that contain the keyword in its memo field. The resulting records are...
3
1427
kcdoell
by: kcdoell | last post by:
Hello Everyone: I have a table called “tblStaticAllForecast”, below are the fields I am currently focusing on within the table: LOB GWP FWeek Any given LOB can have a GWP and FWEEK...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7326
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,...
0
7498
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...
0
5627
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,...
1
5053
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...
0
4707
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...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
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 ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.