473,695 Members | 2,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Report Based On Crosstab Query Question - A2K

Dear Access 2000 users,

I have a crosstab query that puts together certain information
perfectly. It has a criteria that is based on a form that limits how
many columns are returned based on the date selected. Here's the
problem:

The report that the crosstab query feeds was initially created to show
all the dates and thus, all 26 columns. However, since I modified the
crosstab query to only return up to what is selected on the "criteria
form", the report opens only after giving several error messages
saying can't find field. of course, this is perfectly understandable,
but is there a way around this? Either to shut the warnings off (the
ugly, incorrect way, I'm sure) on the report or, better yet, to
somehow add "dummy columns" to fill up the crosstab query so the
report won't return any errors? If there is a third option, I'm more
than willing to listen. Thanks a million in advance!

Kevin
Nov 13 '05 #1
4 2095
"No Spam" <no****@earthli nk.net> wrote in message
news:ia******** *************** *********@4ax.c om...
Dear Access 2000 users,

I have a crosstab query that puts together certain information
perfectly. It has a criteria that is based on a form that limits how
many columns are returned based on the date selected. Here's the
problem:

The report that the crosstab query feeds was initially created to show
all the dates and thus, all 26 columns. However, since I modified the
crosstab query to only return up to what is selected on the "criteria
form", the report opens only after giving several error messages
saying can't find field. of course, this is perfectly understandable,
but is there a way around this? Either to shut the warnings off (the
ugly, incorrect way, I'm sure) on the report or, better yet, to
somehow add "dummy columns" to fill up the crosstab query so the
report won't return any errors? If there is a third option, I'm more
than willing to listen. Thanks a million in advance!


You can enter all possible column names in the ColumnNames property of the
appropriate column in query design view. That will force all columns to be
output even when they don't have data. It also allows you to control the
order of the columns (if that's a concern).
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
Rick,

Thanks a million for the quick reply - can you please elaborate on
ColumnNames? Is that when I precede the field name with a different
name and a column (NewName: [field1])? Or is there something I am
missing? And if I do this, even though some of the columns I renamed
might not be there, the query will still "fill up"? Thanks!

On Wed, 18 Aug 2004 07:39:38 -0500, "Rick Brandt"
<ri*********@ho tmail.com> wrote:
"No Spam" <no****@earthli nk.net> wrote in message
news:ia******* *************** **********@4ax. com...
Dear Access 2000 users,

I have a crosstab query that puts together certain information
perfectly. It has a criteria that is based on a form that limits how
many columns are returned based on the date selected. Here's the
problem:

The report that the crosstab query feeds was initially created to show
all the dates and thus, all 26 columns. However, since I modified the
crosstab query to only return up to what is selected on the "criteria
form", the report opens only after giving several error messages
saying can't find field. of course, this is perfectly understandable,
but is there a way around this? Either to shut the warnings off (the
ugly, incorrect way, I'm sure) on the report or, better yet, to
somehow add "dummy columns" to fill up the crosstab query so the
report won't return any errors? If there is a third option, I'm more
than willing to listen. Thanks a million in advance!


You can enter all possible column names in the ColumnNames property of the
appropriate column in query design view. That will force all columns to be
output even when they don't have data. It also allows you to control the
order of the columns (if that's a concern).


Nov 13 '05 #3
"No Spam" <no****@earthli nk.net> wrote in message
news:n9******** *************** *********@4ax.c om...
Rick,

Thanks a million for the quick reply - can you please elaborate on
ColumnNames? Is that when I precede the field name with a different
name and a column (NewName: [field1])? Or is there something I am
missing? And if I do this, even though some of the columns I renamed
might not be there, the query will still "fill up"? Thanks!


In design view of the crosstab query make sure the property sheet is being
displayed and then put focus into the design grid column that has the
Crosstab entry of "Column Heading". The property sheet should then show a
property named "Column Headings" (sorry I got it wrong in my first
response).

With your cursor in that property press <F1> to see the help topic. It's
fairly straight-forward.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #4
You sir, are magnificent.

Kev

On Wed, 18 Aug 2004 10:53:02 -0500, "Rick Brandt"
<ri*********@ho tmail.com> wrote:
"No Spam" <no****@earthli nk.net> wrote in message
news:n9******* *************** **********@4ax. com...
Rick,

Thanks a million for the quick reply - can you please elaborate on
ColumnNames? Is that when I precede the field name with a different
name and a column (NewName: [field1])? Or is there something I am
missing? And if I do this, even though some of the columns I renamed
might not be there, the query will still "fill up"? Thanks!


In design view of the crosstab query make sure the property sheet is being
displayed and then put focus into the design grid column that has the
Crosstab entry of "Column Heading". The property sheet should then show a
property named "Column Headings" (sorry I got it wrong in my first
response).

With your cursor in that property press <F1> to see the help topic. It's
fairly straight-forward.


Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
7575
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I want them to do as little as possible when they run their reports. I have a crosstab query that displays usage of items for each month. It looks pretty much like this: ITEM DESC UM 12/02 1/03 2/03 3/03 ...ETC. 1 Solution ...
1
17664
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to Create a Dynamic Crosstab Report PRODUCT :Microsoft Access PROD/VER:1.00 1.10 OPER/SYS:WINDOWS
3
3353
by: Edward | last post by:
ACCESS 2k I need to design a report based on a rota system for staff at various shops. The data is effectively stored in a single table, along the lines of: Initials (e.g. BH, FG, RM etc.) Day (e.g. Monday, Tuesday etc.) Shop (e.g. Shop1, Shop2 etc.) StartTime (e.g. 8, 13 etc.)
15
4397
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 of students and columns of activities and the data are the students' scores in each activity. No problem, almost. The problem is that there are five classes at the moment and will be more classes (or courses) in future semesters. I don't want...
3
3416
by: Bryan | last post by:
I've been looking over this newsgroup, but I can't find an answer to my problem. I see that a few others have posted this issue over the years, but none of them got a response. I'll give it another shot. I have a report that is based on a crosstab query. The crosstab query is based off of another query, and that has a parameter in the where clause. Like this: WHERE e.elevationid = !!
2
2918
by: Keith Wilby | last post by:
I have a report that is based upon a crosstab query which return only the columns (fields) it has data for. When my report runs it sometimes fails because some of the text boxes don't have a field in the query. I've written some code to "fake" the missing field names which works perfectly but is quite complex and I'm wondering if there's a simple light bulb shining somewhere that I'm missing. The field names returned by the crosstab are...
2
1878
AccessIdiot
by: AccessIdiot | last post by:
Hello all, I have a report that is based on a crosstab query. One of the fields in the crosstab query is based on a query. It is a coded value. When I look at the crosstab query it displays the value. But when I look at the report I get the coded value. For example, in the table it is; 1 apple 2 orange 3 banana
6
3162
kcdoell
by: kcdoell | last post by:
Hello: I have a report that is based on the following crosstab query: SELECT tblProduct.ProductName, QryProd_Bud.GWP_BUD, Nz(,0) AS Week_1, Nz(,0) AS Week_2, Nz(,0) AS Week_3, Nz(,0) AS Week_4, Nz(,0) AS Week_5, QryProd_Prior.GWP_PRI FROM ((tblProduct LEFT JOIN ctqQueryP_G ON tblProduct.ProductID = ctqQueryP_G.ProductIDFK) LEFT JOIN QryProd_Bud ON tblProduct.ProductID = QryProd_Bud.ProductIDFK) LEFT JOIN QryProd_Prior ON...
14
7848
ollyb303
by: ollyb303 | last post by:
Hi, I am trying to create a dynamic crosstab report which will display number of calls handled (I work for a call centre) per day grouped by supervisor. I have one crosstab query (Query1) which has the following fields: SPID (supervisor ID), total:group by, as row heading Date, total:group by, as column heading Calls handled, total:sum, as value Date, total:where, criteria between and - this is taken from a form,
0
9129
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
9004
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8835
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...
1
6504
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
4351
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...
0
4590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3023
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
2
2285
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1986
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.