可以在报表中使用交叉表查询(A97)吗? [英] Possible to use a crosstab query in a report (A97)?

查看:113
本文介绍了可以在报表中使用交叉表查询(A97)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




如果交叉表查询是动态的,那可能吗?似乎不是这样。

我必须指定文本框的控制源,并且列的数量可能会随着字段名称而改变。\\ br
。 />

想到我会在黑暗中拍摄。

-pw

从电子邮件中删除星号(*)地址

(在spamcop网上使用paulwilliamson)



---- ==通过Newsfeed.Com发布 - 无限制 - 未经审查 - 安全Usenet News == ----
http://www.newsfeed.com 世界排名第一的新闻组服务! > 100,000新闻组

--- = 19东/西海岸专业服务器 - 通过加密的总隐私= ---

解决方案

您可以在报告的OnOpen事件中编写代码,该事件将重新分配

文本框的控件源。

它还可以使额外的文本框不可见。

那时你不能做的就是创建新的文本框,所以你需要

来首先在设计视图中创建尽可能多的文本框。 />

HTH

- 海龟


" pw" < *** paulwilliamson@***spamcop.net>在消息中写道

新闻:o0 ******************************** @ 4ax.com ...



如果交叉表查询是动态的,那可能吗?似乎并不是这样。
我必须指定文本框的控制源,列的数量可能会随着字段名称而改变。

刚认为我会在黑暗中拍摄。

-pw
从电子邮件地址中删除星号(*)
(在spamcop dot net使用paulwilliamson)


---- ==通过Newsfeed.Com发布 - 无限制 - 未经审查 - 安全使用网络
新闻== ---- http://www.newsfeed.com 世界排名第一的新闻组服务! > 100,000
新闻组--- = 19个东/西海岸专业服务器 - 通过加密的总隐私



= ---


2004年5月26日星期三13:14:11 -0600,pw

< *** paulwilliamson@***spamcop.net>写道:


没有简单的方法,因为列数是未知的。


有一个很难的方法:在Report_Open事件中,检查

RecordSource的Fields集合,并在那时绑定数据。确保

确保你有足够的控件排成一行。将未使用的设置为

隐形。


-Tom。



如果交叉表查询是动态的,那可能吗?似乎并不是这样。
我必须指定文本框的控制源,列的数量可能会随着字段名称而改变。

刚认为我会在黑暗中拍摄。

-pw
从电子邮件地址中删除星号(*)
(在spamcop dot net使用paulwilliamson)


---- ==通过Newsfeed.Com发布 - 无限制 - 未经审查 - 安全Usenet新闻== ----
http://www.newsfeed.com 世界排名第一的新闻组服务! > 100,000个新闻组
--- = 19个东/西海岸专业服务器 - 通过加密的总隐私= ---




< blockquote>>您可以在报告的OnOpen事件中编写代码,该事件将重新分配文本框的

controlsources。
它还可以使额外的文本框不可见。
你能做什么那时候要做的是创建新的文本框,所以你需要先在设计视图中创建尽可能多的文本框。

HTH
- 海龟


谢谢海龟。但是,如果我不知道交叉表查询将生成的字段名称是什么?


" pw" < *** paulwilliamson@***spamcop.net>在消息中写道
新闻:o0 ******************************** @ 4ax.com ..。< blockquote class =post_quotes>

如果交叉表查询是动态的,这可能吗?似乎并不是这样。
我必须指定文本框的控制源,列的数量可能会随着字段名称而改变。

刚认为我会在黑暗中拍摄。

-pw
从电子邮件地址中删除星号(*)
(在spamcop dot net使用paulwilliamson)


---- ==通过Newsfeed.Com发布 - 无限制 - 未经审查 - 安全Usenet


新闻== ----

http://www.newsfeed.com 世界排名第一的新闻组服务! > 100,000


新闻组

--- = 19东/西海岸专业服务器 - 通过加密的总隐私


= ---




-pw

从电子邮件地址中删除星号(*)
(在spamcop dot net使用paulwilliamson) )


---- ==通过Newsfeed.Com发布 - 无限制 - 未经审查 - 安全Usenet新闻== ----
http://www.newsfeed.com 世界排名第一的新闻组服务! > 100,000新闻组

--- = 19东/西海岸专业服务器 - 通过加密的总隐私= ---


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 =---

解决方案

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


=---


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 =---




>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 =---


这篇关于可以在报表中使用交叉表查询(A97)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆