在Access中,光标可以默认为表单上的搜索框吗? [英] In Access, can cursor default to the search box on a form?

查看:141
本文介绍了在Access中,光标可以默认为表单上的搜索框吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

打开表单时,是否可以将游标默认设置为Access窗体上的搜索框?我有几种用于数据输入和查看的表单。我们使用搜索框很多。如果有人输入要搜索的内容,忘记将光标放在搜索框中,他们最终会在某处输入数据。


将光标放在FormOpen的搜索框中会很棒...但我还没有发现如何,或者它是否可能。


任何人?


谢谢聪明人! : - )

Is it possible to have the cursor default to the Search box on an Access form when the form is opened? I have several forms that are used for both data entry and viewing. We use the search box a LOT. If someone types something to search, forgetting to put the cursor in the search box, they end up typing over data somewhere.

Would be awesome to put the cursor in the search box on FormOpen...but I haven''t found out how, or if it''s even possible.

Anyone?

Thank you smart people! :-)

推荐答案

Rush - 但是:
Rushed - but :
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


但这不是我的控制......它是导航栏中的Access内置搜索框(我认为它被称为导航栏......由底部的向前和向后箭头)应用程序。)
But it''s not my control...it''s the Access built-in search box in the navigation bar (I think it''s called navigation bar...by the forward and backward arrows at the bottom of the application.)


实际上,现在我有更多的时间,有几种方法。
Actually, now I have a little more time, there are a couple of ways.
  1. 如果您设置了Tab键顺序,以便您首先要使用的控件是fi rst(.TabStop = True& .TabIndex = 0)然后它会自动启动。这通常都是必需的。
  2. 否则,在 Form_Open() Form_Load()事件程序包括我之前发布的帖子。

    因此,如果您的Control被称为{ControlName},那么您将使用:
  1. If you set the tab order such that the Control you want to go to first is first (.TabStop=True & .TabIndex=0) then it will start there automatically. This is often all that''s required.
  2. Otherwise, in either the Form_Open() or Form_Load() event procedures include the line from my earlier post.
    So, if your Control is called {ControlName} then you''d use :
展开 | 选择 | Wrap | 行号


这篇关于在Access中,光标可以默认为表单上的搜索框吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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