code to move between tab controls

S

Simon

I have a form with a tab Control with 'Packing' & 'Despatch' and
'Scan'

i have a button on the Packing tab that runs some code, once it runs
the code i want it to display the Despatch tab

How would i do this in code
 
A

Arvin Meyer [MVP]

Add this to the end of your code, just before you exit or end the sub:

Me.Despatch.SetFocus
 

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