按键后子窗体最大化 [英] Subform maximizes after key press

查看:64
本文介绍了按键后子窗体最大化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我在Access 2016中遇到了一些表格的问题。我基本上有一个主表单(frmNavigation),包括一个包含11个子表单的子表单控件。现在,只要子窗体内的按钮具有焦点,我按下按钮,子窗体控件最大化并且
填满整个屏幕,导致无法在各个窗体之间导航。表单的标题仍然保留主窗体的标题,如果我切换到设计视图并返回到窗体视图,一切都是我想要的方式。

I'm having some trouble with a form in Access 2016. I basically have one main form (frmNavigation) including a subform control which holds 11 subforms. Now whenever a button inside a subform has focus and I press a button the subform control maximizes and fills out the whole screen, resulting in an inability to navigate between the individual forms. The title of the form still holds the caption of the main form, and if I switch to design view and back to form view everything is the way I want it again.

我已经启用了密钥预览所有子表单和主表单,但它没有改变任何东西。在搜索谷歌相当一段时间后,没有发现任何东西,我没有想法做什么。我希望你们中的一些人经历过同样的事情
并且可以帮助我!

I already enabled key preview on all subforms and the main form, but it didn't change anything. After having searched google for quite some time now and having nothing found I'm out of ideas what to do. I hope some of you have experienced the same thing and could help me out!

谢谢

推荐答案

看起来很可能你在一个或所有子窗体的按钮后面有代码导致事物被最大化。

It would seem probable that you have code behind one or all of the subform's buttons that is causing the thing to be maximized.

因为这看起来是如此明显的结论到达时,很可能你已经考虑了同样的事情,并且已经查找了这样的代码。

Since this seems like such an obvious conclusion to arrive at, it may well be that you have considered the same thing, and have looked for such code already.

您也可以在Subform控件的Enter事件中查找代码。

You might also look for code in the Enter event of the Subform control.


这篇关于按键后子窗体最大化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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