如何设置表单/子表单的“允许编辑”属性? [英] How to set a form's/subform's "Allow Edits" property?

查看:105
本文介绍了如何设置表单/子表单的“允许编辑”属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表单/子表单组合,我有时想打开禁止编辑,添加和删除,具体取决于我来自哪个受密码保护的菜单选项。 (我的菜单结构非常简单,所以我不是使用交换机,而是使用带有控件的一些表单。)


如何操作这两个属性在打开表单之前,表单及其子表单(在检查密码的小程序中)?

I have a form/subform combination that I sometimes want to open disallowing Edits, Additions, and Deletions, depending on which password-protected menu option I''m coming from. (My menu structure is pretty simple, so I''m not using a switchboard, but rather some forms with controls on them.)

How do I manipulate those properties, of both the form and its subform, (in the little procedure that checks the password) before I open the form?

推荐答案

查看此链接: http://msdn.microsoft.com/en-us /libr...ice.11​​%29.aspx


它向您展示了如何访问VBA中的AllowEdits属性。其他Allow-type属性还有其他链接和说明。
Check out this link: http://msdn.microsoft.com/en-us/libr...ice.11%29.aspx

It shows you how to access the the AllowEdits property in VBA. There are additional links and instruction for the other Allow-type properties.


这是一篇非常有用的文章。但是我没有正确的语法来打开一个RecordsetType设置为Snapshot的表单。我正在尝试给我一个''type mismatch'':

That is a very helpful article. But I don''t have the syntax correct for opening a form with its RecordsetType set to Snapshot. What I''m trying gives me a ''type mismatch'':

展开 | 选择 | Wrap | 行号


展开 | 选择 | Wrap | 行号


这篇关于如何设置表单/子表单的“允许编辑”属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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