Try adding:
f1.AllowEdits = True
OR
Set the tab order of the form to make LastName the first tab stop and then just set focus to the subform.
me.s1frmCustomers!frmCusto
PS: I agree with 1W about the variable usage. Unless you are doing more than this with the var, there is no gain, and you just have to destroy it one nanosecond after you instantiate it.
PSS: Try using the "Me" object to reduce coding keystrokes
regards
Jack
Main Topics
Browse All Topics





by: 1WilliamPosted on 2003-08-12 at 09:11:35ID: 9131286
since you are only using the form reference twice, no point in wasting the resources for a variablePrivate Sub cmdAddCustomer_Click()
Forms!frmMain!s1frmCustome
Forms!frmMain!s1frmCustome
End Sub