Tab Form set focus

B

bob

Hi I have a tab form with 4 pages.

I need to tab out of the field Occupation on Page Customer Detail into the
field EmployerAddress on Page Employer Details.

The main for is called Incident Data Entry

How do I code this into the on exit event?

Thanks Bob
 
B

bob

Ay thanks for the reply, yes it works if you add Me.EmployerAddress.SetFocus
after DoCmd.GoToControl ("EmployerAddress")

DoCmd.GoToControl ("EmployerAddress")
Me.EmployerAddress.SetFocus

The first line finds the page but doesn't set the focus on the field.

Regards Bob
 

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

Top