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
 
Top