Docmd: GoToControl

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Have a form called customers. Names, address etc. Listbox called
SelectCustomer.

And a subform called: CustomerOrders.

In the Subform is a field called Date.

What I want to do is, after selecting customer name in SelectCustomer
listbox on the main form to go straight to the field Date in the subform and
as a new record aswell.

Sofar I have gone to the properties of the list box SelectCustomer and in
the after update property selected Docmd.GoToControl..........what is the
syntax after that?

Docmd.GoToControl ????????????
 
SetFocus is the preferred method.

Try:

Me.CustomerOrders.SetFocus
Me.CustomerOrders.Form.[Date].SetFocus
 
Thank you kindly, much appreciated

Van T. Dinh said:
SetFocus is the preferred method.

Try:

Me.CustomerOrders.SetFocus
Me.CustomerOrders.Form.[Date].SetFocus


--
HTH
Van T. Dinh
MVP (Access)


renold1958 said:
Have a form called customers. Names, address etc. Listbox called
SelectCustomer.

And a subform called: CustomerOrders.

In the Subform is a field called Date.

What I want to do is, after selecting customer name in SelectCustomer
listbox on the main form to go straight to the field Date in the subform
and
as a new record aswell.

Sofar I have gone to the properties of the list box SelectCustomer and in
the after update property selected Docmd.GoToControl..........what is the
syntax after that?

Docmd.GoToControl ????????????
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top