简体   繁体   English

子窗体连续窗体上的MS Access滚动条未设置记录焦点

[英]MS Access scrollbar on subform continuous forms not setting record focus

I can't seem to figure this out. 我似乎无法弄清楚。 I have a subform displaying continuous forms with a vertical scrollbar. 我有一个子窗体,它使用垂直滚动条显示连续的窗体。 When I click the scrollbar to move to a different record, the record never receives focus. 当我单击滚动条移至其他记录时,该记录永远不会获得焦点。 The focus is still on the control of the record I left. 重点仍然放在我留下的记录的控制上。

How to I control the record focus after using the scrollbar? 使用滚动条后如何控制记录焦点? The subform's On Current event does not fire. 子窗体的“当前事件”不会触发。

Thanks! 谢谢!

The vertical scroll bar in a continuous MS Access form does not navigate among records. 连续的MS Access窗体中的垂直滚动条不会在记录之间导航 It simply changes which records are visible on the form. 它只是更改了哪些记录在表单上可见。 The black triangle within the record selector on the left side of the form indicates which record is currently "selected." 表格左侧的记录选择器内的黑色三角形表示当前“选择”的记录。

You can navigate records (ie, control the record focus, as you say) several different ways: 您可以几种不同的方式浏览记录(即,控制记录焦点):

  • Click on the record selector* (the gray rectangle to the left of the form detail section) 单击记录选择器*(表单详细信息部分左侧的灰色矩形)
  • Click on any enabled control within the form detail section 单击表单详细信息部分中的任何已启用的控件
  • Use the navigation controls* at the bottom left of the form 使用表单左下方的导航控件*
  • Use [Tab], [Enter], or arrow keys to move through the individual controls on the form detail section; 使用[Tab],[Enter]或箭头键在表单详细信息部分的各个控件之间移动; when you reach the last control in the tab order, your next [Tab]/[Enter]/[Down Arrow] key press will take you to the next record 当您到达选项卡顺序中的最后一个控件时,下一次按[Tab] / [Enter] / [Down Arrow]键将带您到下一条记录

* Note that both the Record Selectors and Navigation Buttons may be turned off on your form. *请注意,记录选择器和导航按钮都可能在窗体上关闭。 On the form property sheet, ensure Record Selectors: Yes and Navigation Buttons: Yes . 在表单属性页上,确保“ Record Selectors: Yes和“ Navigation Buttons: Yes

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

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