473,406 Members | 2,345 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,406 software developers and data experts.

missing fields in reports

rcollins
234 100+
I have a crosstab query that I am using on a report.
Expand|Select|Wrap|Line Numbers
  1. TRANSFORM Count(NonMedicaidQuarterReport.Access1) AS CountOfAccess1
  2. SELECT NonMedicaidQuarterReport.[DateResolutionSent By Quarter]
  3. FROM NonMedicaidQuarterReport
  4. GROUP BY NonMedicaidQuarterReport.[DateResolutionSent By Quarter]
  5. PIVOT NonMedicaidQuarterReport.Access1;
So the fields of the query whaen I run it are
DateResolutionSent By Quarter, -1 ,0. So my problem is, when I filter by quarter, some of my crosstabs no longer have the -1 collumn, and when I open the report it says it does not recognize Access1.[-1] as a field name or expression. Is there a way to supress this so I don't have the error?
Mar 27 '09 #1
2 1595
Stewart Ross
2,545 Expert Mod 2GB
I guess the -1 and 0 values represent True and False states, and when you filter the crosstab the True state is sometimes filtered out. This in turn leads to the report problem as the control on the report representing that field is missing a corresponding bound column in the query.

The simplest solution is to set crosstab column headings so that there will always be a true and false column present regardless of filtering. Open the query in design view of the query editor, right-click and select properties, Column Headings, and then type -1, 0 to set the property to the two values you need.

This should at least resolve the current problem for you.

Using crosstab queries in reports can be tricky, because as you have found the column headings are not always the same. Reports in general have statically-defined sets of fields, whereas crosstab headings can vary dynamically.

Setting specific crosstab headers is not always possible, as these too are set statically, limiting their use to situations that are not really typical of many real-life uses of crosstabs. It is often not possible to specify the values in advance (for example where a crosstab is used to provide totals by date period, say).

For these reasons crosstabs are not good choices as the source for reports. In your current case there is no real need to use a crosstab to feed the report - you could base a report on a non-crosstab version of the same query and I am sure you would then avoid any complications which the crosstab version has brought you. That is for another time, however.

-Stewart
Mar 27 '09 #2
rcollins
234 100+
Thank you, works perfect.
Mar 27 '09 #3

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

Similar topics

0
by: Ashish Joy | last post by:
We have developed a report using Crystal Reports 9.22. version. This report shows particular fields of 2 tables joined using inner join. A particular field value shows perfectly fine when we run...
1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
4
by: Thomas | last post by:
H I have a number of existing crystal reports in ASP.net 1.1 applications that include a subreport that contains header information which comes from a SQL stored procedure. Of course, each report...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
2
by: Darryl Kerkeslager | last post by:
As the subject above hopefully makes clear, I want to do several reports, "with lots of fields not otherwise in database". These reports also have variable-length text. I have defined the...
0
by: Chris | last post by:
I finally got my report to be recongized, that login issue is terrible. Using VS.NET 2003, created report inside of it. Now when I attempt to display the report is blank (missing data, though I can...
1
by: warlord | last post by:
In order to save typing, I've borrowed the text from a post of nearly 12 months ago.....but the problem still exists. I've been banging my head all day with this, so I'm hoping someone has some...
15
by: Mr.Tom.Willems | last post by:
Hello people, I am ussing an MS access database to enter and manage data from lab tests. until now i was the only one handeling the data so i had no need for a controle on how missing data was...
1
by: jadeite100 | last post by:
Hi All: I installed oracle report server 10.1.2.02 I tried the following url and it display the page properly that ask Test run Job: http://xxx/reports/rwwebservice?operation=runJob When I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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,...
0
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...

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.