Full Version: Setting focus from Form header
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
CHKarcher
I have a command box that if I place the command box in the detailed section I can set focus after the backend code is completed to any feild on the form.

now if that command button is in the header I cannot get it to set focus to any where in the detailed area?

how can I get it to leae the header area to go into the detailed section with a setfocus command?

thanks
steve
Jack Cowley
Me.NameOfControl.SetFocus

That should move the focus, if you are in the header, to a control in the Detail section. If this is not your question then please restate it as I am not sure what you mean by 'command box' and 'backend code'...

Jack
CHKarcher
problem was I had to set focus to the form, then setfocus to the subform and then setfocus to the feild within that subform.

What the button was doing was going out and opening up another form - you made some selections - and then those selections brought back data to the initial form.

the setfocus, setfocus, setfocus worked

thanks
steve
Jack Cowley
Steve -

You are welcome. Glad to hear that you got everything working...

Jack
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.