C
Christopher Robin
I have two simple forms, and one I open with the On Double Click event of the
main form.
DoCmd.OpenForm "Payees", , , , , acDialog, "GotoNew"
On the Payees form, I have the following code:
If Me.OpenArgs = "GotoNew" And Not IsNull(Me![PayeeName]) Then
DoCmd.GoToRecord , , acNewRec
End If
The code actually works but does have one odd side effect and that is that I
have no idea, where the focus is. If I double click on the main form's
control and the new form opens, I have to tab to actually be able to start
typing the new data. There is only one control on this form and its tab stop
is 0. When I try to use the SetFocus method, Access complains.
Any ideas how to resolve this problem?
TIA,
Chris
main form.
DoCmd.OpenForm "Payees", , , , , acDialog, "GotoNew"
On the Payees form, I have the following code:
If Me.OpenArgs = "GotoNew" And Not IsNull(Me![PayeeName]) Then
DoCmd.GoToRecord , , acNewRec
End If
The code actually works but does have one odd side effect and that is that I
have no idea, where the focus is. If I double click on the main form's
control and the new form opens, I have to tab to actually be able to start
typing the new data. There is only one control on this form and its tab stop
is 0. When I try to use the SetFocus method, Access complains.
Any ideas how to resolve this problem?
TIA,
Chris