Hi
I have a FORM ("Quotes"
which opens another form ("Clients"
when I double click on a field.
The "clients" form has a cmdclose button with the following code in it...
Everything works fine HOWEVER the original FORM [Quotetype] field doesn´t get the FOCUS with the code below.
So I have to click on the form again to continue working with it...
What am I doing wrong ?
Thanks in advance.
Private Sub cmdclose_Click()
If IsLoaded("Quotes"
Then
Form_Quotes.ClientName = Me.ClientName
Forms!quotes.ClientName.SetFocus
Forms!quotes.ClientName.Requery
Form_Quotes.QuoteLines_Subform.Form![QuoteType].SetFocus
Else
End If
DoCmd.Close
End Sub
I have a FORM ("Quotes"
The "clients" form has a cmdclose button with the following code in it...
Everything works fine HOWEVER the original FORM [Quotetype] field doesn´t get the FOCUS with the code below.
So I have to click on the form again to continue working with it...
What am I doing wrong ?
Thanks in advance.
Private Sub cmdclose_Click()
If IsLoaded("Quotes"
Form_Quotes.ClientName = Me.ClientName
Forms!quotes.ClientName.SetFocus
Forms!quotes.ClientName.Requery
Form_Quotes.QuoteLines_Subform.Form![QuoteType].SetFocus
Else
End If
DoCmd.Close
End Sub