By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,471 Members | 2,277 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,471 IT Pros & Developers. It's quick & easy.

tab control can't make invisible while it has the focus

P: n/a
Hi to all,
I have a couple of tab control pages in a form and I want to make them
invisible. I can't make them invisible because one of the control has
the focus. I tried to move the focus to another part of the form
outside the page using the setfocus() command but I am still getting the
error.
How can I remove the focus from the control tabl page on the form?
Thanks

Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Did you try setting focus to a control on another page of the tab control?

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<us**@domain.invalid> wrote in message
news:3F**************@domain.invalid...

I have a couple of tab control pages in a form and I want to make them
invisible. I can't make them invisible because one of the control has
the focus. I tried to move the focus to another part of the form
outside the page using the setfocus() command but I am still getting the
error.
How can I remove the focus from the control tabl page on the form?
Thanks

Nov 12 '05 #2

P: n/a
Hi Allen,
Yes, I did. Access just don't let me change the state of the tab
control page while the focus is on one of the other control on the page.
Do a command which does the opposite of setfocus() exists?
Cheers
an***@robipro.com

Allen Browne a écrit:
Did you try setting focus to a control on another page of the tab control?


Nov 12 '05 #3

P: n/a
On Tue, 06 Jan 2004 19:42:48 -0500, us**@domain.invalid wrote:
Hi to all,
I have a couple of tab control pages in a form and I want to make them
invisible. I can't make them invisible because one of the control has
the focus. I tried to move the focus to another part of the form
outside the page using the setfocus() command but I am still getting the
error.
How can I remove the focus from the control tabl page on the form?
Thanks


me.some_other_control.setfocus should work.
Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.