My Assistant
![]() ![]() |
|
|
Nov 5 2007, 06:02 PM
Post
#1
|
|
|
UtterAccess Veteran Posts: 450 From: Oklahoma |
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 |
|
|
|
Nov 5 2007, 06:33 PM
Post
#2
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
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 |
|
|
|
Nov 6 2007, 08:45 AM
Post
#3
|
|
|
UtterAccess Veteran Posts: 450 From: Oklahoma |
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 |
|
|
|
Nov 6 2007, 09:49 AM
Post
#4
|
|
|
Retired Moderator Posts: 37,716 From: The San Francisco Bay Area |
Steve -
You are welcome. Glad to hear that you got everything working... Jack |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 24th May 2013 - 07:55 AM |