Switching the focus from a tab to another

Dear all,

I have an application wich dispalys a view.

On this view, user may select a button which will display a document from another database in a new tab.

That means I have a tab with a view from db1 and another tab with a document from db2. Focus is on this tab.

The code called by the button should now continue and is asking for a profile document which is located in db1 (the one which has not the focus…

How can I change the focus to the first tab ?

Thank you very much for any suggestion and have a nice day.

-Ben-

Subject: Switching the focus from a tab to another

post your button code

Subject: Switching the focus from a tab to another

do post your code first so that it will be easy to guide u