AC2007 - RecordsetClone问题? [英] AC2007 - RecordsetClone problem ?

查看:91
本文介绍了AC2007 - RecordsetClone问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了表单问题。一切正常,直到我决定为LastUpdate和LastUserID添加2列。我不想让它们隐藏在表格上。

I'm running into trouble with a form. Everything was working fine till I decided to add 2 columns for LastUpdate and LastUserID. I didn't want to make them hidden and bound on the form.

在我进行acSaveRecord或recordsetclone更新之前,我会追踪这些值并且看起来很好。更新后,我检查表,没有值出现。从外观上看,就像记录集克隆不是"同步"一样。与基础表。
我在这里遗漏了什么吗?

我有一种有趣的感觉,如果我使用隐形表格字段,它会起作用。

Before I do the acSaveRecord or recordsetclone update, I trace the values and they look good. After the update, I check the table and no values appear. From the appearance, it as though the recordsetclone is not "syncing" with the underlying table. Am I missing something here ?
I have a funny feeling that if I use invisible form fields, it will work.

推荐答案

Syswizard,

Syswizard,

你的滑稽感觉是正确的,它是以受约束的形式对记录更新进行日期标记的高度首选方式。我强烈建议您重新考虑使用隐藏的绑定文本框,并让绑定的表单机制为您更新这些更新。
除了试图采用任何其他方法之外,你会减掉更多的头发(是的,这是直接体验的声音)。

Your funny feeling is correct, and it is the Highly Preferred means of date-stamping record updates in bound forms. I would strongly urge you to reconsider using hidden bound textboxes and letting the bound form mechanics handle these updated for you. You will tear much less of your hair out that way than attempting to do any other method (and yes, this IS the voice of direct experience).

你实际上有风险记录通过尝试使用recordsetclone更新由表单本身主动更新的记录来锁定和其他更新问题。不要去那里 - 除非你没有更好的事情要做,而不是浪费时间和精力在一个没有结果的
endaevor(我怀疑可能不是这样)。  : - )

You actually risk record locking and other update issues by attempting to use a recordsetclone to update the record actively being updated by the form itself. Don't go there - unless you have nothing better to do than waste time and energy in a fruitless endaevor (which I suspect is probably not the case).  :-)

 


这篇关于AC2007 - RecordsetClone问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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