Use the "name" box on the inspector's position tab to give each tab panel an object name.
Use Go to Object in your script to select the tab panel that you want to bring to the front.
The trickier question is how to set things up so that your script uses the correct object name to select that tab panel.
The best approach depends on whether or not you are using FileMaker 12 as they added some script triggers to version 12 that greatly simplify the process needed to keep track of which tab panel is the front tab panel.
Thank for your answer..sounds good. I'm using 11...would you be able to tell me how would I go the correct object in 11? :)
Got it work!!! Thank you! :)