473,503 Members | 12,175 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is a dynamic crosstab form possible?

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.

One can easily open up a crosstab query. Simply use the OpenQuery
command. But this limits the use of dbl-clicks and event procedures.

Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?
Oct 4 '06 #1
13 17107
Total dynamic form creation is not really a good idea in Access. If your
willing to impose some limits to the form or crosstab query you can get a
pretty convincing result. In the end, it all depends on your exact needs.
Sometimes, your language choice(VB for Access) when you started can be your
worst mistake. IMHO, this language is a very high level language that
doesn't give pin point control like for example C++. But for making an
application quickly from scratch its much better than C++.

HTH
Martin
"salad" <oi*@vinegar.comwrote in message
news:_E*****************@newsread4.news.pas.earthl ink.net...
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.

One can easily open up a crosstab query. Simply use the OpenQuery
command. But this limits the use of dbl-clicks and event procedures.

Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Oct 4 '06 #2
Check out the "IN" clause

You will be able to define which column will be present even if there is no
data for the column. With proper formatting of the source query to the cross
tab, you will not have the name and number of columns change.

"salad" <oi*@vinegar.comwrote in message
news:_E*****************@newsread4.news.pas.earthl ink.net...
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.

One can easily open up a crosstab query. Simply use the OpenQuery
command. But this limits the use of dbl-clicks and event procedures.

Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?

Oct 4 '06 #3
Martin wrote:
Total dynamic form creation is not really a good idea in Access. If your
willing to impose some limits to the form or crosstab query you can get a
pretty convincing result. In the end, it all depends on your exact needs.
Well, a crosstab query gives me the results I want. So does a Pivot
table. The problem with Pivot tables is that the recordsource is
stashed away someplace, not suitable to updating or filtering on the
fly. The problem with a crosstab is that the column count may fluctuate.
Sometimes, your language choice(VB for Access) when you started can be your
worst mistake.
I disagree. It gives me partially what I want. I think Pivot tables
and crosstabs aren't fully functional. They are cute, but not really
practical...partially implemented.

IMHO, this language is a very high level language that
doesn't give pin point control like for example C++. But for making an
application quickly from scratch its much better than C++.
If you have a large team of programmers and lots of money and time, then
C++ is worthwhile.
HTH
Martin
"salad" <oi*@vinegar.comwrote in message
news:_E*****************@newsread4.news.pas.earthl ink.net...
>>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.

One can easily open up a crosstab query. Simply use the OpenQuery
command. But this limits the use of dbl-clicks and event procedures.

Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Oct 4 '06 #4
On Wed, 04 Oct 2006 19:08:42 GMT, salad <oi*@vinegar.comwrote:
>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.

One can easily open up a crosstab query. Simply use the OpenQuery
command. But this limits the use of dbl-clicks and event procedures.

Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?
see http://support.microsoft.com/default...;en-us;Q328320

there was a version of this for A97 but if not still available I don't think much will have changed.

If you want an editable for it is more complicated, you have to use a temporary table.
Oct 4 '06 #5
paii, Ron wrote:
Check out the "IN" clause
Not sure what the benefit of IN is in my quest.
You will be able to define which column will be present even if there is no
data for the column. With proper formatting of the source query to the cross
tab, you will not have the name and number of columns change.
Which totally defeats the purpose. Here's an example; you can have
28-31 data columns, besides the row columns, for a month. The column
counts change. Now one could open up the query without mods and see
exactly what's what. The problem is no event processes.

One could create a form. Here you need to specify the number of columns
and assign names to the contols. One could make a form with excess
controls and fake it out and hide columns as required. For something
dealing with days in a month, that would be a piece of cake with lots of
coding required.

Alternatively, I suppose I could fake it out and display "groups" of
data. It may be the only way to go. For example, the columns may be
employee names. So I could show employees A - M in one group, N - P in
another set. Basically a PITA regarding the excess code required.

It would be nice if one could simply drop a recordset into a form that
would display data as a datasheet and have it use the columns of the
query without specifiying all of the controls on the form in advance.
>
"salad" <oi*@vinegar.comwrote in message
news:_E*****************@newsread4.news.pas.earthl ink.net...
>>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.

One can easily open up a crosstab query. Simply use the OpenQuery
command. But this limits the use of dbl-clicks and event procedures.

Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?


Oct 4 '06 #6
Yes there are possibilities here. Check my site, Code modules ->
EditCrosstab, can that do anything for you?

salad schreef:
Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?
--
Bas Cost Budde
Holland
www.heuveltop.nl/BasCB/msac_index.html
Oct 5 '06 #7
On Thu, 05 Oct 2006 00:05:02 GMT, salad <oi*@vinegar.comwrote:

I think he meant the Column Headings property of the query.
-Tom.

>paii, Ron wrote:
>Check out the "IN" clause
Not sure what the benefit of IN is in my quest.
<clip>
Oct 5 '06 #8
salad <oi*@vinegar.comwrote in
news:_E*****************@newsread4.news.pas.earthl ink.net:
Can a form be created that can adjust to the column count
changes/column name changes based on a Crosstab?
Well, of course it can.

Create a form with the fields that are always in your crosstab
bound.

Then add a bunch of hidden fields for the dynamic field (i.e., the
crosstab fields that can vary).

When you open the form, the recordsource will populate the
Recordsetclone. All you have to do is count the fields in the
RecordsetClone's Fields collection, then walk through them and
assign ControlSources and make visible the fields to display the
data.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Oct 5 '06 #9

"salad" <oi*@vinegar.comschreef in bericht news:O_****************@newsread3.news.pas.earthli nk.net...

It would be nice if one could simply drop a recordset into a form that
would display data as a datasheet and have it use the columns of the
query without specifiying all of the controls on the form in advance.
Maybe you could use a "datasheet-form" ??
With Access 2000 and above one can use tables and queries just like that as the SourceObject in a Subform control .
It works great. Set columnwidth to -2 and all columns 'magically' will adjust themselves.

I created a 'Datasheet-form" where one can simply choose the table or query to show from a combo.
You can also control the font, fontsize, forecolor, backcolor and such.

Arno R
Oct 5 '06 #10
If pivot tables and crosstab queries give you what you want and the forms
part doesn't and it doesn't give you a way to remedy it. That is a limiting
factor of the platform\language. Try writing a pivot table or crosstab query
not in a relational database it would take quite a while. However it really
depends on how big a range of columns you need. I did the visible and moved
fields around trick once or twice. The code might be a little lengthy but it
will work well. If that still didn't give you\me enough columns I copied it
added more fields and did the visible trick again. So for instance I needed
between 15 and 30 columns my first form had 15 to 22. Wrote all the code.
Then copied it and used it for a form for columns 23 to 30. This is not
dynamic but it really doesn't matter because the user has no idea nor does
he care. As long as your end user is satisfied and you spent the least
time/money possible implementing your solution I consider that a Success!

"salad" <oi*@vinegar.comwrote in message
news:wG******************@newsread2.news.pas.earth link.net...
Martin wrote:
Total dynamic form creation is not really a good idea in Access. If your
willing to impose some limits to the form or crosstab query you can get
a
pretty convincing result. In the end, it all depends on your exact
needs.
>
Well, a crosstab query gives me the results I want. So does a Pivot
table. The problem with Pivot tables is that the recordsource is
stashed away someplace, not suitable to updating or filtering on the
fly. The problem with a crosstab is that the column count may fluctuate.
Sometimes, your language choice(VB for Access) when you started can be
your
worst mistake.

I disagree. It gives me partially what I want. I think Pivot tables
and crosstabs aren't fully functional. They are cute, but not really
practical...partially implemented.

IMHO, this language is a very high level language that
doesn't give pin point control like for example C++. But for making an
application quickly from scratch its much better than C++.
If you have a large team of programmers and lots of money and time, then
C++ is worthwhile.
HTH
Martin
"salad" <oi*@vinegar.comwrote in message
news:_E*****************@newsread4.news.pas.earthl ink.net...
>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.

One can easily open up a crosstab query. Simply use the OpenQuery
command. But this limits the use of dbl-clicks and event procedures.

Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet
News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption
=----
>


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Oct 5 '06 #11

"salad" <oi*@vinegar.comwrote in message
news:O_****************@newsread3.news.pas.earthli nk.net...
paii, Ron wrote:
Check out the "IN" clause
Not sure what the benefit of IN is in my quest.
You will be able to define which column will be present even if there is
no
data for the column. With proper formatting of the source query to the
cross
tab, you will not have the name and number of columns change.

Which totally defeats the purpose. Here's an example; you can have
28-31 data columns, besides the row columns, for a month. The column
counts change. Now one could open up the query without mods and see
exactly what's what. The problem is no event processes.
IN will allow your cross tab to return field names Day1 though Day31 so your
report will always have controls matched to field names. The open event of
the report would modify labels to correctly identify the column or hide it
if no data. I did this in a report that supplied a rolling 3 week loading by
work center from data in the work order system. The source query calculates
a column to match one of the "IN" clause value for the day of week the load
is scheduled in the work center.
One could create a form. Here you need to specify the number of columns
and assign names to the contols. One could make a form with excess
controls and fake it out and hide columns as required. For something
dealing with days in a month, that would be a piece of cake with lots of
coding required.
If used in a form, you most likly would need a temp table. Code in the form
would update the underlying tables.
>
Alternatively, I suppose I could fake it out and display "groups" of
data. It may be the only way to go. For example, the columns may be
employee names. So I could show employees A - M in one group, N - P in
another set. Basically a PITA regarding the excess code required.

It would be nice if one could simply drop a recordset into a form that
would display data as a datasheet and have it use the columns of the
query without specifiying all of the controls on the form in advance.

"salad" <oi*@vinegar.comwrote in message
news:_E*****************@newsread4.news.pas.earthl ink.net...
>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.

One can easily open up a crosstab query. Simply use the OpenQuery
command. But this limits the use of dbl-clicks and event procedures.

Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?

Oct 5 '06 #12
"Martin" <ma*****@schemesoftware.comwrote in
news:11*************@sp6iad.superfeed.net:
If pivot tables and crosstab queries give you what you want and
the forms part doesn't and it doesn't give you a way to remedy it.
That is a limiting factor of the platform\language.
That limitation does not exist in Access -- what he needs is
completely possible.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Oct 5 '06 #13
salad wrote:
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.

One can easily open up a crosstab query. Simply use the OpenQuery
command. But this limits the use of dbl-clicks and event procedures.

Can a form be created that can adjust to the column count changes/column
name changes based on a Crosstab?
Thanks all for the tips.
Oct 7 '06 #14

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

Similar topics

1
17629
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...
1
3313
by: Richard Hollenbeck | last post by:
Hello Newsgroup. You have all been very helpful in the past and I thank you. I try to ask relevant questions so that they don't just benefit me, but also benefit the group. I'm currently...
3
3581
by: deejayquai | last post by:
Hi I've created a crosstab query and displayed it as a sub-report in my main report. This is fine until the data changes and the column names become incorrect. I know I have to create a...
1
4076
by: mtech1 | last post by:
Access 2002 I am trying to create a dynamic crosstab report that parameters come from 3 different forms. I get runtime error 3070 - The Microsoft Jet database engine does not recognize...
2
2923
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...
1
5151
by: Brad | last post by:
Thanks for taking the time to read my question. I have a table of data that has Date, Data and Category. I need to show, in a report, each Categories Data by Date. The Date has to be it's own...
0
2303
by: Peter Herath | last post by:
I want to create a custormizable report . For an example, there's a form with four combo boxes and two of them having database tables columns/field names as values in the combo box(one for select row...
5
3939
by: Albert Wammes | last post by:
Is it possible to create form containing an editable crosstab querie? The only way I can think of is to create a temporary table where the results of the crosstab querie are stored, then presented...
14
7825
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...
0
7193
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,...
0
7264
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,...
0
7316
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
7449
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
5562
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,...
1
4992
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...
0
3160
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...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
728
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.