473,378 Members | 1,619 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,378 software developers and data experts.

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 1632
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" <***paulwilliamson@***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

=---
Nov 13 '05 #2
On Wed, 26 May 2004 13:14:11 -0600, pw
<***paulwilliamson@***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
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

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

"pw" <***paulwilliamson@***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
<***paulwilliamson@***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" <***paulwilliamson@***spamcop.net> wrote in message
news:9o********************************@4ax.com...
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 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" <***paulwilliamson@***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
<***paulwilliamson@***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: programmatically open the report in design view and
use CreateReportControl 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
<***paulwilliamson@***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 #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" <***paulwilliamson@***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

=---
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" <***paulwilliamson@***spamcop.net> wrote in message
news:9o********************************@4ax.com.. .
>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'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" <***paulwilliamson@***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
<***paulwilliamson@***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: programmatically open the report in design view and
use CreateReportControl 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
<***paulwilliamson@***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 =---


-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
pw
>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.

I get it Alan. Thanks!!

"pw" <***paulwilliamson@***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 #11

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

Similar topics

1
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...
2
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 ...
3
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...
2
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...
2
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...
8
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...
14
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....
13
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...
14
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.