Re: Before Update and Keydown

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Allen,

I used the Lost Focus event and it worked. It's strange because I used the
Lost Focus event in other places in my code. I think I didn't try it this
time because I had other scenarios with the Lost Focus event and I didn't get
the correct results. I think I also tried using the Exit event. Anyway,
thanks for your help!


"Allen Browne" wrote:

> "juicegully" <juicegully@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:EB582C4D-A2D5-4461-8C32-E336CDFFC823@xxxxxxxxxxxxxxxx
> > Is there any way to trigger the
> > setfocus event (of something on the mainform) when only the Tab or Enter
> > key
> > is pressed? That text box is the only control on the subform.
>
> No. The event will trigger under other conditions also, e.g. if they click
> there with the mouse.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia.
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
>
>
.


Quantcast