On Tab Change (Tab Control)

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

Guest

I am trying to code on tab change. I have written code to check that data in
each tab has been completed before changing tabs. The problem is that the
code runs after the tab has changed. I want to AVOID going to the new tab
before running the code.

Any suggestions would be greatly appreciated.

Regards...
 
Lowrider72 said:
I am trying to code on tab change. I have written code to check that
data in each tab has been completed before changing tabs. The
problem is that the code runs after the tab has changed. I want to
AVOID going to the new tab before running the code.

Any suggestions would be greatly appreciated.

Regards...

All you can do is immediately take them back to the Tab page that they left.
There is no event that fires "before" the change.
 
Thanks for the info Rick...

Rick Brandt said:
All you can do is immediately take them back to the Tab page that they left.
There is no event that fires "before" the change.
 
I don't have a solution, just an observation on Rick's suggestion. If you
sent the user back to the previous tab, wouldn't you then be triggering any
field validation on the current tab, sending them back to the 2nd tab and so
on...?

I think you'll have to leave the validation for last.
 
Back
Top