Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在访问中构建一个表单,如果将选项框选择为否,我需要阻止用户输入到文本框中,我对使用 VBA 没有经验,所以有人有任何想法,将不胜感激
在 OptionBox 的 AfterUpdate 事件中加入以下语句: Me.TextBox.Enabled = Not Me.OptionBox.Value
Me.TextBox.Enabled = Not Me.OptionBox.Value