Access VBA禁用此功能,按Tab插入数据 [英] Access vba disable the feature ,inserting data by Tab

查看:41
本文介绍了Access VBA禁用此功能,按Tab插入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个访问表单,该表单通过按钮(带有vba代码)插入数据,
但是用户可以通过按Tab插入,如何通过VBA禁用它?

I created a access form ,this form insert data by a button(with vba code),
but user can insert by pressing Tab ,how can I disable that by VBA?

推荐答案

要禁用下一条记录"(当用户在最后一个字段上按Tab时),您需要将光标移回第一个字段.
该怎么做?
在表单的属性中,将Cycle属性设置为Current Record(其他"选项卡).
To disable "next record" (when user press tab on the last field), you need to move the cursor back to the first field.
How to do that?
In the form''s properties set the Cycle property to Current Record (Other tab).


这篇关于Access VBA禁用此功能,按Tab插入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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