Changing from form to subform???

Kieran

Learn learn learn..Forget
Local time
Tomorrow, 08:48
Joined
Jul 16, 2002
Messages
23
I have a form with a subform. I want to use a macro to go from a control in the main form to a control in the subform.

I use GoToControl, but it just says that there is no field with that name. I wouldn't even mind if i could just set focus to the subform...

Please help with some suggestions.....


Thanks
 
Set the focus to the subform first, then set the focus to the control. The VBA to do this is
Code:
Me.NameofSubform.SetFocus 
Me.NameofSubform.Form!NameofControl.SetFocus
 
macro

is there anyway i can do it using a macro??
 
Did it....

I used the GoToControl command and pointed it to the subform first.

Thanks for the help, pointed me in the right direction.
 

Users who are viewing this thread

Back
Top Bottom