Tabbing and Focus

J

James_101

In Access 2000, my database opens with an AutoExec macro. This macro opens a
form called Main_Form and then maximizes it. In startup properties
(Tools|Startup), Display Database Window is unselected. In Main_Form,
Command Button #1 receives the initial focus in the tab sequence.

If I open the database file by double clicking it in Windows Explorer, all
goes well. I note that the title bar for the application is active (dark
blue).

If, however, I open the file using the Mcrosoft Office 2000 Shortcut Bar,
then Main_Form appears but button #1 does not have the focus. It is slightly
smaller than usual but does not have the dotted-line rectangle that denotes
buttons having the focus. Also, the title bar for the application is light
blue. If I click the window, then the dotted rectangle appears on button #1
as desired.

In the AutoExec macro, I have tried SelectObject and GoToControl to activate
the form and button #1 but both actions failed.

Are there suggestions on how I can get button #1 to show the focus when the
user opens the database using the Office Shortcut Bar?

Thanks.

Jim
 
T

tina

well, this is a stab in the dark, but you could try this: remove the
Maximize action from the AutoExec macro. in Main_Form design view, create a
new macro on the form's Load event. put the Maximize action in the new
macro.

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