简体   繁体   English

为什么我的访问表失去重点

[英]Why does my access form lose focus

I have a Microsoft Access form which I use for entering client information: 我有一个用于输入客户信息的Microsoft Access表单:

First name 名字
Last name
etc.. 等等..

My problem is when I tab away from the Access Form to view the information which needs to be entered, the focus is lost in access. 我的问题是,当我从“访问表单”中移开以查看需要输入的信息时,访问时便失去了焦点。 I need to click the form with the mouse to regain the focus. 我需要用鼠标单击表格以重新获得焦点。

This is very annoying! 这很烦人!

Any help here? 这里有什么帮助吗?

AS far as I know, the focus of an access object is lost when you clic anything outside the object... that includes forms. 据我所知,当您访问对象之外的任何内容时,访问对象的焦点就会丢失。

I can suggest you two ways of tacling this: 我可以建议您两种解决方法:

  1. Use a control (combo box or list box) inside your form, so you can view the data you need. 使用窗体内的控件(组合框或列表框),以便可以查看所需的数据。
  2. Use a "pop up" form: you can create a form with the data you need, and a button inside your main form that opens this "pop up" form. 使用“弹出”表单:您可以使用所需的数据创建一个表单,并在主表单内创建一个按钮以打开此“弹出”表单。 You can specify in VBA if you want your form to open as a pop-up... if I remeber correctly, is something like this: 您可以在VBA中指定是否要以弹出形式打开表单...如果我正确地记住,是这样的:

     ... docmd.openform("frmYourForm",,,acDialog) ... 

Hope this helps you 希望这对您有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM