Adding record to a subform from button on main form

mmitchell

Registered User.
Local time
Today, 13:32
Joined
Jan 7, 2003
Messages
80
I am trying to add a new record to a subform from a button on the main form but when I do, the subform's blank new record does not "jump" to the focus like when I click on any of the subform records and hit Insert-->New Record.

Here is what I have on the button:

Forms!F_Parameters!F_Parameter_subform!tbxParameterName.SetFocus
DoCmd.GoToRecord , , acNewRec
 
subFormControlName.SetFocus
someControlOnSubForm.SetFocus
DoCmd.GoToRecord , , acNewRec


so you need to set focus to the subform and then a control on the subform
 
Yes, that did it!

Thanks. :D
 

Users who are viewing this thread

Back
Top Bottom