记录选择器[事件过程] [英] Record Selector [Event Procedure]

查看:191
本文介绍了记录选择器[事件过程]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,


我试图在单击记录选择器时在表单上发生某些事情。这是访问2003.我尝试了表单'的点击事件,这根本不起作用。


任何人都知道如何在每次按下表单的记录选择器时触发一个程序?


感谢大家。这让我很生气,非常感谢任何可以提供的帮助。


谢谢!

All,

I am trying to have something happen on a form whenever the record selectors are clicked. This is access 2003. I tried the form''s click event and that does not work at all.

Anyone know how I can get a procedure to trigger everytime the form''s record selector is pressed?

Thanks to everyone. This is driving me crazy and any help that can be offered is greatly appreciated.

Thanks!

推荐答案

当你点击在记录选择器上你正在移动到另一个记录,并且触发了表单'' OnCurrent 事件,因此无论你想做什么,这都是适当的事件。 />

Linq ; 0)>
When you click on the record selector you''re moving to another record, and the form''s OnCurrent event is triggered, so that would be the appropriate event for whatever you''re trying to do.

Linq ;0)>


jschmidt。


实际上没有特定的事件来响应记录选择器点击。

但是有一点解决方法它可以被排序。

当单击记录选择器时,Form_Click事件被触发,但是当其他表单区域(但是触发自己的点击事件的对象,例如细节部分背景,控件等)接收到鼠标点击时,它也会被触发。

您可以尝试使用Form来区分这些点击.SelHeight属性,返回选择的行数。实际上,当您单击记录选择器时,会选择一行,否则不会选择任何行。

Hi, jschmidt.

Actually there is no specific event to respond to record selector click.
But with a little workaround it could be sorted.
When record selector is clicked Form_Click event is fired, but it is fired as well when other form area (but the objects firing their own click event, e.g. detail section background, controls etc.) receives mouse click.
You may try to distinguish between these clicks using Form.SelHeight property which returns how many rows are selected. Really, when you click on record selector one row is selected otherwise no row is selected.

展开 | 选择 | Wrap | 行号


I对不起,但是当点击记录选择器时,即使在数据表视图中, OnCurrent 事件也会触发,不是吗?


Linq ; 0)>
I''m sorry, but when the Record Selector is clicked, the OnCurrent event does fire, even in Datasheet View, does it not?

Linq ;0)>


这篇关于记录选择器[事件过程]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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