隐藏标签和文本框 [英] Hide labels and textboxes

查看:68
本文介绍了隐藏标签和文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Access 2003中有一个报告。如果我在文本框上设置了can shrink属性,当它们为空时它们是不可见的,这就是我想要的。但它不会隐藏与之相关的相关标签。这可能是用vba或visual basic 6做的吗?

谢谢

I have a report in Access 2003. If I set the can shrink property on the textboxes they are invisible when they are empty, which is what I want. But it does not hide the associated label connected to it. Is that possible to do, either with vba or visual basic 6?
Thanks

推荐答案

在详细信息中使用此代码的每个字段' 'On Print事件:

Use for each field this code in the Detail''s On Print event:

展开 | 选择 | Wrap | 行号



I在Access 2003中有一个报告。如果我在文本框上设置了can shrink属性,当它们为空时它们是不可见的,这就是我想要的。但它不会隐藏与之相关的相关标签。这可能是用vba或visual basic 6做的吗?

谢谢
I have a report in Access 2003. If I set the can shrink property on the textboxes they are invisible when they are empty, which is what I want. But it does not hide the associated label connected to it. Is that possible to do, either with vba or visual basic 6?
Thanks



无耻地昵称Nico的一些答案(我不会想到Detail_Print事件,但也许OnCurrent事件也会起作用):

To nick some of Nico''s answer shamelessly (I wouldn''t have thought of the Detail_Print event, but maybe the OnCurrent event would have worked as well) :

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


我有一个类似的问题,并使用提供的代码隐藏没有数据的字段的标签。我有另一个问题,有没有办法缩小空白区域,因此字段紧凑在一起 - 因为它是隐藏的字段,但它就像是为字段保留了空间(它们只是没有出现,但是报告上有足够的空间出现)...
I have a similar issue and used the code provided to hide the labels of the fields with no data. I have another question, is there a way to shrink the white space so the fields compact together--as it is, the fields are hidden, but it is like there is space reserved for the fields (they are just do not appear, but have enough space on the report to appear)...


这篇关于隐藏标签和文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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