问题描述
我已经创建了Access应用程序,该应用程序仅使用Access 2010中的表单,表格和VBA。没有宏...
I've made a Access application that's made only with forms, tables and VBA in Access 2010. No macro's...
我已将其导出到一个2003版本,并通过更改一些引用在Access 2003的计算机上运行良好。
I've exported it to a 2003 version and runs fine on a computer with Access 2003 by changing some references.
在2007年的计算机上,它启动并尽可能接受一个表单。
On a computer with 2007 it starts up and do the most thinks accept one form.
该表单包含许多标签,这些标签在更新组合框后会发生变化。表格打开时也是如此。
That form contains many labels en textboxes that change after updating a combobox. And also when the form opens.
当表单打开时,它只是通过rapportdatum.Caption ="更改一个标签。测试"。
When the form opens, it just change one label by rapportdatum.Caption = " test ".
该行导致问题,并且 Acces (或Windows7) 拖出错误并关闭Access。
That line causes a problem and Acces (or Windows7) trows an error and close Access.
I删除了标签并将其取回,给出了其他名称,等等。什么都没有解决问题。
I removed the label and made it back, gived an other name, and so on and so on. Nothing solves the problem.
当我将该行放到评论行时,问题就解决了。即使通过在该评论行之前或之后更改其他标签而进行的测试也可以正常运行该应用程序,直到完成该工作。这就是我如何隔离使$停止的行
。
When I make that line to a comment line the problem is solved. Even tests by changing another label before or after that comment line workes fine an the application is till doing the job. That's how I isolated the line that makes Access stops.
在该行的开头删除',当该表单打开时,Access会出错并关闭。
Removing the ' at the beginning of that line and Access makes an error and closses when that form opens.
解决问题的唯一方法是更改该标签,而不是直接通过Me.rapportdatum.Caption或更短的rapportdatum.Caption直接调用它,而是通过 控制(&) ; rapportdatum")。Caption =" test"。
The only way that solve the problem is to change that label by not to call it direct by Me.rapportdatum.Caption or shorter rapportdatum.Caption but indirect by Controls("rapportdatum").Caption = " test ".
谁可以告诉我为什么 我无法更改该特定标签使用直接调用方法和其他标签 in相同的表格运作良好?
Who can tell me why I can't change that specific label use the direct call methode and other labels in the same form workes well?
推荐答案
这篇关于Access 2007中带有标签的奇怪的fenomen.Vaption在VBA中更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!