473,623 Members | 3,366 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 2085
"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
7560
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
17656
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
3346
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
4391
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
3413
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
2915
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
1872
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
3156
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
7837
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
8162
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
8603
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...
1
8317
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8463
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
6104
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
5560
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
4067
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
2593
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
1
1769
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.