Focus highlight after GoToRecord

L

Laurel

I have a macro which ends in GoToRecord. I find that if I
execute a Requery within the macro, the first field of the
destination record is highlighted. But if I don't, it is
not. The GoToRecord seems to execute successfully in
either case because the pointer in the left border moves.
I don't see anything like "SetFocus" as an action in the
Macro list. How can I get the first field to highlight
without executing Requery first?
 
T

tina

when a form is requeried, the focus will automatically go
to the first enabled, "tabstop = Yes" control in the tab
order. but when you use GoToRecord, normally the focus
will stay in the same control that had it in the previous
record.

the SetFocus action in a macro is called GoToControl.

hth
 

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