Set focus to button on Form Header

TylerTand

Registered User.
Local time
Today, 09:50
Joined
Aug 31, 2007
Messages
95
I have had a hard time setting the focus on a button when a Form opens if the button is in the Form's Header. I just can't seem to make this work. Your help with this annoying problem is appreicated:)
 
I have tried everything I can think of from:

On Open: [Command25].setfocus

[forms]![KeywordSearchResults].[command25].setfocus

[Forms]![KeywordSearchResults].Section(1).[Command25].setfocus

If I could just set the Tab order to start with the Header I could send it right to the button but I can't seem to figure that out either.

Help!

Thanks,
Tyler
 
Thanks Bob but I just figured it out.

I just put behind the button that opens the form to not only set the record source but also to set the focus on the command button. I thought I already tried that but who knows :)
 

Users who are viewing this thread

Back
Top Bottom