首先在Combobox中强制数据输入 [英] Force Data Entry In Combobox First

查看:103
本文介绍了首先在Combobox中强制数据输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表格顶部有一个未绑定的组合框,17个控件下面是
。有没有一种简单的方法可以阻止任何控件中的数据输入

直到在组合框中进行选择?


谢谢!


史蒂夫

I have a form with an unbound combobox at the top and seventeen controls
below it. Is there a simple way to prevent data entry in any of the controls
until a selection is made in the combobox?

Thanks!

Steve

推荐答案

假设其他控件都在详细信息部分中,只需将其设为

部分不可见并在

组合框的AfterUpdate事件中设置其可见性(测试组合框中的值)。


-


Ken Snell

< MS ACCESS MVP>


" PC数据表" <无**** @ nospam.spam>在消息中写道

新闻:W _ ***************** @ newsread3.news.atl.earthl ink.net ...
Assuming that the other controls are in the Detail section, just make that
section invisible and set its visibility in the AfterUpdate event of the
combo box (test for a value in the combobox).

--

Ken Snell
<MS ACCESS MVP>

"PC Datasheet" <no****@nospam.spam> wrote in message
news:W_*****************@newsread3.news.atl.earthl ink.net...
我的表格顶部有一个未绑定的组合框,下面有十七个控件。在组合框中进行选择之前,是否有一种简单的方法可以阻止任何
控件中的数据输入?

谢谢!

Steve
I have a form with an unbound combobox at the top and seventeen controls
below it. Is there a simple way to prevent data entry in any of the
controls until a selection is made in the combobox?

Thanks!

Steve



如果您想获得

的外部帮助,请通过以下电子邮件地址与我联系。我的费用非常合理。


- PC数据表资源获取Access,Excel和Word的帮助

应用

< a href =mailto:re ****** @ pcdatasheet.com> re ****** @ pcdatasheet.com www.pcdatasheet.com


PC数据表写道:
Contact me at my email address below if you would like outside help with
this. My fees are very reasonable.

-- PC Datasheet Your Resource For Help With Access, Excel And Word
Applications

re******@pcdatasheet.com www.pcdatasheet.com

PC Datasheet wrote:
我有一张未绑定的表格顶部的组合框和它下方的十七个控件。在组合框中进行选择之前,是否有一种简单的方法可以阻止任何控件中的数据输入?

谢谢!

史蒂夫
I have a form with an unbound combobox at the top and seventeen controls
below it. Is there a simple way to prevent data entry in any of the controls
until a selection is made in the combobox?

Thanks!

Steve



" PC数据表" <无**** @ nospam.spam>写在

新闻:W _ ***************** @ newsread3.news.atl.earthl ink.net:
"PC Datasheet" <no****@nospam.spam> wrote in
news:W_*****************@newsread3.news.atl.earthl ink.net:
我的表格顶部有一个未绑定的组合框,下面有十七个控件。在组合框中做出选择之前,是否有一种简单的方法可以阻止任何控件中的数据输入?

谢谢!

史蒂夫
I have a form with an unbound combobox at the top and
seventeen controls below it. Is there a simple way to prevent
data entry in any of the controls until a selection is made in
the combobox?

Thanks!

Steve



格式为当前事件,将

的.enabled属性设置为false。在组合框'.afterupdate中,将它们设置为true。

-

Bob Quintal


PA是y我修改了我的电子邮件地址。


in the form''s current event, set the .enabled property false for
each control. The in the combo box''s .afterupdate, set them true.
--
Bob Quintal

PA is y I''ve altered my email address.


这篇关于首先在Combobox中强制数据输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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