SetFocus

maxmangion

AWF VIP
Local time
Today, 04:56
Joined
Feb 26, 2003
Messages
2,805
How can i set the focus to the first control in a form, without referencing the control name ?

Ex. Normally i do :

Me.ControlName.SetFcous

Now i have a code which adds a new record, which is used on several forms, therefore the control name is not always the same, so i would like the focus to move to the first field on the tab order. Any ideas please ?

Thanks
 
Tab order

Right click on the design of your required form and go to Tab order this should allow you to manipulate which has the set focus when the form is enetered.
 
I am not refering to set the focus to a particular field , when i open the form, but while i am in a form and when i click on the Add button from a customised toolbar which has a generic code to add a new record in any form.
 

Users who are viewing this thread

Back
Top Bottom