从主表单字段自动填充子表单字段
我有一个带有两个子表单的表单,这两个子表单都是连续的。每个表单都有一个字段来接受创建记录的人的姓名。几乎每次,同一个人都会创建所有记录,因此如果设置主记录后字段能够自动填充,那将非常方便。
我已经尝试了几种方法,但似乎没有一种方法能完全正确地工作(例如,第一个连续表单不会自动填充,因为它是与主记录一起存在的)。这是 Access 2003。
I have a form with two subforms, both of which are continuous. Each form has a field to accept the name of the person who created the record. Almost every time, the same person will be creating all of the records, so it would be really convenient if the fields would autofill once the main record has been set.
I've tried several approaches to this, but none seem to work quite right (e.g., the first of the continuous forms won't autofill because it came into existence alongside the main record). This is Access 2003.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
OnCurrent、OnClick 等...
OnCurrent, OnClick, etc...
最好在控件的更新后事件中设置控件的默认值。这意味着它将填充先前的值。
It may be best to set the default value of the control in the after update event for the control. This means that it will fill with whatever the previous value was.