Printable Version of Topic

Click here to view this topic in its original format

UtterAccess Forums _ Access Forms _ Show The Required Page In Tab

Posted by: cmohanc Jan 11 2017, 01:38 AM

Hi ,
I am working on a form that contains more than 1 page in a tab. When I enter a particular field in the main form , i want a specific page to be shown.
I have used set focus to the particular page. But the current control loses the focus.
I want the current control to get the focus back.
Is there any way to show the required page , without using setfocus?

Thanks in advance.

Posted by: adaytay Jan 11 2017, 04:08 AM

Hi cmohanc,

Is the current control on the same page as the page that you are setting focus to?

If not - then I would suspect not. Could you provide a little more background as to what you're trying to achieve?

Posted by: cmohanc Jan 11 2017, 07:48 AM

The current control is in the parent form.

I have a control named "Process" in parentForm
In the same form , I have tab control containing different subforms in 3 pages.
When i enter the control " Process" I want to show the relevant page ( Page name "Process List" ) in the tab control, while the focus remains on "Process"

Posted by: adaytay Jan 11 2017, 10:44 AM

Hmm. You *could* try setting focus to the page and then switch it back to the Progress control. Does that work as intended?

Posted by: cmohanc Jan 11 2017, 12:27 PM

If switch back to that control , the on enter event fires and it again sets focus to the tab. It goes into a loop.