moving from one control to another

G

gw

In all my forms (MS2003) I was able to use afterupdate procedures to move the
focus from one control to another, depending on the answer. But on this one
page, for every value I enter, the form would quickly skip to the top (I can
see the header for a split second) and then jump back down to the control I
want. It does the job but is extremely annoying. Did I do something wrong?
How can I stop the hiccup?

Tks!
 
M

Mr B

gw,

Without actually seeing your form, it is a little difficult to see what is
happening. However, you might try turning off the screen updating of your
form until the actions you are taking are complete and then turn the screen
updating back on.

Use:
Docmd.Echo false
at the beginning of your code to turn off the screen updating but be sure
that you use:
docmd.echo true
to turn the screen updating back on.
 
M

Maurice

hmm, not a hidden control in the header I presume? Try making your header and
footer just a little smaller my guess would be the tight fit of the form.

hth
 
G

gw

Thanks for your tips. It wasn't a hidden control. But it brought my
attention to the tab order. For some reason the last control was on the top
of the list. Everytime I try to move the focus with a check procedure, it
may have briefly 'visited' the tab order and caused the 'hiccup'. Once I
fixed the tab order, it works fine. Tks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top