如何将文本放入RptTextBox? [英] How To Get Text Into RptTextBox?
本文介绍了如何将文本放入RptTextBox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以帮我把一些文本输入到rptTextBox吗?
我的DataReport连接到一个空的Access数据库只是为了使报表正常工作,我不需要从数据库中获取任何数据.
我已经像这样设置了rptLabels:
Can anyone help me get some text into a rptTextBox?
My DataReport is connected to an empty Access database just to get the report working, I dont need to get any data from the database.
I have set the rptLabels like this:
DataReport1.Sections("Section1").Controls("lblStructure").Caption = "Static System"
Now I wonder if I can get some text into the rptTextBoxes in a similar way? e.g.
DataReport1.Sections("Section1").Controls("txtPanelProp").Text = "AnytText"
导致此消息的原因:对象不支持此属性或方法
This one causes message: Object doesn''t support this property or method
Thanks in advance!
推荐答案
您想要的是Controls("txtPanelProp").Value ="AnyText".
确保您在许多MS Office站点或MSDN站点中添加了书签,这些站点为您提供了可用于Access的属性和方法的列表.
What you want is Controls("txtPanelProp").Value = "AnyText".
Ensure you bookmark one of the many MS Office sites or MSDN that provide you the list of properties and methods available for Access.
这篇关于如何将文本放入RptTextBox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文