MS-Access 表单,希望文本在不截断的情况下换行(如在报告中)

MS-Access form, want text to wrap without truncation (as in reports)

我有一个显示列表的表单。其中一个字段是文本类型,最大。长度为 255。此字段在表单上显示为被截断。 Can Grow 属性 设置为 'Yes'

我希望根据当前字段中的字符数动态调整每一行的高度。这种情况发生在报告中,但在这种情况下不会发生在表单字段中。

我尝试将表单中的属性与报告进行比较,但没有发现差异。

请问我该怎么做?谢谢

没有机会 (scnr), 这 属性 在表单视图中不起作用,只有在打印表单时才有效。

TextBox.CanGrow Property

This property affects the display of form sections and controls only when the form is printed or previewed, not when the form is displayed in Form view, Datasheet view, or Design view.

编辑

你可以看看http://lebans.com/cangrow.htm

Stephen Lebans 是一个 API 奇才,你会发现里面有很多复杂的代码,但它可能会做你想要的。但是您必须决定额外的代码和潜在的不稳定性是否值得。