【发布时间】:2017-02-07 10:23:44
【问题描述】:
我有一个大问题。当一个记录集应该保存时,我的一个 Access-Apps 失败了。要保存的代码是(按钮事件):
bolsichern = True
DoCmd.RunCommand acCmdSaveRecord
在我打开表单之前。我改变了一些东西,然后单击保存按钮。 x 次保存成功,但下一刻调试器启动。我单击调试并进入 VBA。这是黄色的:
DoCmd.RunCommand acCmdSaveRecord
但是当我按 F5 时代码运行,我的意思是保存成功。什么事?在某些日子里,没有关于此错误的用户电话。另一天,当我想保存时,每次都会出现错误。这意味着 Debug-Windows 会打开,我去 VBA 按 F5 就可以了!!!
当错误只是偶尔出现时,我如何才能找到原因?
请帮助我;-)
谢谢。
蔬菜
更新:
在另一个论坛中,一个用户也有同样的问题,也许这个问题比我的更重要:
We have a SQL 2008 R2 standard edition installed on Server 2008. We use an access front-end which connects to a SQL backend tables which are linked with the app.
Since last 2 weeks, we are continuously getting application freeze with the error - ODBC Error 3157: Update to linked table "###" failed
So far I have done the below:
1. Added primary key to the table as it had an identity column only
2. Relinked all the table and redistributed the front-end to the users
3. Ensure SQL files are shrunk
4. Checked network connections connecting the server to the switch
5. Checked SQL configuration manager to ensure right accounts are being used for the SQL services
This issue is very sporadic and it is now becoming frustrating as it has been ongoing for couple of weeks.
Can anyone shed some light on this as I am running out of possible ideas.
我尝试了所有这些点,但它仍然零星地不起作用:-(
【问题讨论】:
-
您应该提供错误消息文本吗?
-
消息是德语的。我应该提供吗?
-
ODBC – 更新链接表
失败。 (错误 3157)
默认是保存,为什么要运行保存?@Fionnuala 我不明白你的意思!?它是 Access 中的表单,而不是 datagridview。有时我无法更改 SQL-Management-Studio 中列的值。还有一个关于超时的错误。
标签: sql sql-server ms-access vba