parry
MrExcel MVP
- Joined
- Aug 20, 2002
- Messages
- 3,355
Hi, I have a subform and want to set focus to the first record in the form using VBA. When I use DoCmd.OpenForm Subform_Filter_data the subform opens a separate window instead of focusing on the subform within the main form. The main form is open at the time.
If I try Forms!Subform_Filter_data!Code.SetFocus I get an error, because the form isnt open.
Any ideas how to reference the subform?
cheers
Parry
This message was edited by parry on 2003-01-09 18:49
If I try Forms!Subform_Filter_data!Code.SetFocus I get an error, because the form isnt open.
Any ideas how to reference the subform?
cheers
Parry
This message was edited by parry on 2003-01-09 18:49