473,785 Members | 2,829 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possible to use a crosstab query in a report (A97)?

pw
Hi,

Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field names.

Just thought I'd take a shot in the dark.
-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #1
10 1670
You can write code in the report's OnOpen event which will reassign
controlsources for textboxes.
It can also make extra textboxes invisible.
What you can't do at that point is to create new textboxes, so you'll need
to create the maximum possible number of textboxes first in design view.

HTH
- Turtle

"pw" <***paulwilliam son@***spamcop. net> wrote in message
news:o0******** *************** *********@4ax.c om...
Hi,

Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field names.

Just thought I'd take a shot in the dark.
-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 13 '05 #2
On Wed, 26 May 2004 13:14:11 -0600, pw
<***paulwilliam son@***spamcop. net> wrote:

There is no simple way, as the number of columns is unknown.

There is a hard way: in the Report_Open event, inspect the
RecordSource's Fields collection, and bind the data at that time. Make
sure you have plenty of controls lined up. Set the unused ones to
invisible.

-Tom.

Hi,

Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field names.

Just thought I'd take a shot in the dark.
-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---


Nov 13 '05 #3
pw
>You can write code in the report's OnOpen event which will reassign
controlsourc es for textboxes.
It can also make extra textboxes invisible.
What you can't do at that point is to create new textboxes, so you'll need
to create the maximum possible number of textboxes first in design view.

HTH
- Turtle

Thanks Turtle. But what if I don't know the name of the fields that
the crosstab query will generate?

"pw" <***paulwilliam son@***spamcop. net> wrote in message
news:o0******* *************** **********@4ax. com...
Hi,

Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field names.

Just thought I'd take a shot in the dark.
-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000

Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---


-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #4
pw
>On Wed, 26 May 2004 13:14:11 -0600, pw
<***paulwillia mson@***spamcop .net> wrote:

There is no simple way, as the number of columns is unknown.

There is a hard way: in the Report_Open event, inspect the
RecordSource 's Fields collection, and bind the data at that time. Make
sure you have plenty of controls lined up. Set the unused ones to
invisible.

-Tom.


I appreciate your help Tom! Thank you so much!

Do you know of any "magic" 3rd party utility that can generate any
fancy reports like this?
Hi,

Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field names.

Just thought I'd take a shot in the dark.
-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---


-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #5
I think Tom's answer covered this -
do you need to know more?

Or perhaps your case is not quite so complex as you present.

For example, if your crosstab's ColumnHeader is the name of the month, you
may not have any entries for a particular month, and thus not generate that
column.
But if you list all the months in the ColumnHeaders property, you will get a
column for each month, whether or not there is data.
This can vastly simplify creating reports.

HTH
- Turtle

"pw" <***paulwilliam son@***spamcop. net> wrote in message
news:9o******** *************** *********@4ax.c om...
You can write code in the report's OnOpen event which will reassign
controlsourc es for textboxes.
It can also make extra textboxes invisible.
What you can't do at that point is to create new textboxes, so you'll needto create the maximum possible number of textboxes first in design view.

HTH
- Turtle

Thanks Turtle. But what if I don't know the name of the fields that
the crosstab query will generate?

"pw" <***paulwilliam son@***spamcop. net> wrote in message
news:o0******* *************** **********@4ax. com...
Hi,

Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field names.

Just thought I'd take a shot in the dark.
-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000

Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via
Encryption=---


-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet

News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 13 '05 #6
On Wed, 26 May 2004 21:25:24 -0600, pw
<***paulwilliam son@***spamcop. net> wrote:

None that I know of. But a professional developer should be able to
write this code for you within a few days. Check out 'Microsoft
Solution Provider' in your yellow pages.

Another option: programmaticall y open the report in design view and
use CreateReportCon trol to build the report. I've done this in a
project. Requires the full version of Access, and MDB rather than MDE.

-Tom.
On Wed, 26 May 2004 13:14:11 -0600, pw
<***paulwilli amson@***spamco p.net> wrote:

There is no simple way, as the number of columns is unknown.

There is a hard way: in the Report_Open event, inspect the
RecordSource' s Fields collection, and bind the data at that time. Make
sure you have plenty of controls lined up. Set the unused ones to
invisible.

-Tom.


I appreciate your help Tom! Thank you so much!

Do you know of any "magic" 3rd party utility that can generate any
fancy reports like this?
Hi,

Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field names.

Just thought I'd take a shot in the dark.
-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---


-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---


Nov 13 '05 #7
pw,
You have to declare the column headings in the properties panel of the
query. As long as the column headings keep the same name you can bind the
report to the query. If they change then you would need code to set the
column heading property on the way to opening the report.

"pw" <***paulwilliam son@***spamcop. net> wrote in message
news:o0******** *************** *********@4ax.c om...
Hi,

Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field names.

Just thought I'd take a shot in the dark.
-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 13 '05 #8
pw
>I think Tom's answer covered this -
do you need to know more?

Or perhaps your case is not quite so complex as you present.

For example, if your crosstab's ColumnHeader is the name of the month, you
may not have any entries for a particular month, and thus not generate that
column.
But if you list all the months in the ColumnHeaders property, you will get a
column for each month, whether or not there is data.
This can vastly simplify creating reports.

HTH
- Turtle
Thanks ya Turtle! :-)


"pw" <***paulwilliam son@***spamcop. net> wrote in message
news:9o******* *************** **********@4ax. com...
>You can write code in the report's OnOpen event which will reassign
>controlsourc es for textboxes.
>It can also make extra textboxes invisible.
>What you can't do at that point is to create new textboxes, so you'llneed >to create the maximum possible number of textboxes first in design view.
>
>HTH
> - Turtle
>


Thanks Turtle. But what if I don't know the name of the fields that
the crosstab query will generate?

>"pw" <***paulwilliam son@***spamcop. net> wrote in message
>news:o0******* *************** **********@4ax. com...
>> Hi,
>>
>> Is that possible if the crosstab query is dynamic? Doesn't seem so as
>> I have to specify the control source for the text boxes and the number
>> of columns may change, along with their field names.
>>
>> Just thought I'd take a shot in the dark.
>>
>>
>> -pw
>> remove astericks (*) from e-mail address
>> (use paulwilliamson at spamcop dot net)
>>
>>
>>
>>
>> ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet
>News==----
>> http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000
>Newsgroups
>> ---= 19 East/West-Coast Specialized Servers - Total Privacy viaEncryption >=---
>


-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000

Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---


-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #9
pw
>On Wed, 26 May 2004 21:25:24 -0600, pw
<***paulwillia mson@***spamcop .net> wrote:

None that I know of. But a professional developer
Like myself? <bg>
should be able to
write this code for you within a few days. Check out 'Microsoft
Solution Provider' in your yellow pages.
Another option: programmaticall y open the report in design view and
use CreateReportCon trol to build the report. I've done this in a
project. Requires the full version of Access, and MDB rather than MDE.

-Tom.

I'll try that Tom! Thanks!


On Wed, 26 May 2004 13:14:11 -0600, pw
<***paulwill iamson@***spamc op.net> wrote:

There is no simple way, as the number of columns is unknown.

There is a hard way: in the Report_Open event, inspect the
RecordSource 's Fields collection, and bind the data at that time. Make
sure you have plenty of controls lined up. Set the unused ones to
invisible.

-Tom.


I appreciate your help Tom! Thank you so much!

Do you know of any "magic" 3rd party utility that can generate any
fancy reports like this?
Hi,

Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field names.

Just thought I'd take a shot in the dark.
-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---


-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---


-pw
remove astericks (*) from e-mail address
(use paulwilliamson at spamcop dot net)


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #10

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

Similar topics

1
17673
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
2
3049
by: Sherman H. | last post by:
I have a few questions for crosstab and popup form questions: 1. I created a crosstab as follows: IT Financial Operation John 21 22 22 Mary 15 17 16 Joe 28 29 31 For some other instances, the Operation column was not created because the
3
3419
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
2942
by: deejayquai | last post by:
Hi I'm trying to produce a report based on a dynamic crosstab. Ultimately i'd like the report to actually become a sub report within a student end of year record of achievement. The dynamic sub-report will capture what grades the student has achieved in a list of different subjects and the reason I need it to be dynamic is that students take different subjects. Basically I've been trying to doctor the KB article on dynamic
2
2539
by: scott.k.fraley | last post by:
....and the SELECT thats trying to pull from said Query doesn't like it one bit! ;) I'm working on this project (in Access 2002) and there is a report who's RecordSource is the following SELECT; SELECT xTab.FirstOfPRIORITZTN_STATUS_NAME, xTab., iif(IsNull( xTab. ), 0, xTab.) AS ,
8
6078
by: Penny | last post by:
(Access 2003 Multiuser Split DB, Windows XP Pro) Hi All, I would really appreciate just some basic tips on how to make a Crosstab Form based on a Crosstab Query. The query always has the same number of records(generated from a table of predefined 'timeslots'). The number of columns(one for each Consultant) varies depending on how many of the Consultants have a yes/no field('Participates') set to yes. Therefore the Crosstab query...
14
3502
by: Tina | last post by:
My employer tracks productivity/performance of clinicians (how much they bill) each week, its averages for the month, and the 6 months. These averages are compared to their expected productivity. However, the expectation changes - it may be 60% for a while, then change to 50%. Initially, I was averaging the expectation, along with the productivity, but what I'm being asked is to look at the average productivity/performance compared to...
13
17168
by: salad | last post by:
Operating in A97. I didn't receive much of a response conserning Pivot tables in Access. Pivot tables are nice, but a CrossTab will work for me too. Using a Pivot table, one is actually launching Excel for data viewing. I'd prefer the user stay in Access. Creating dynamic crosstab queries is pretty simple. The problem is that the column count may shrink or grow depending on the filter.
14
7860
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
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10327
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...
1
10092
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
9950
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
8973
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...
0
6740
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
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
2879
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.