Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing control focus on outlook forms

Status
Not open for further replies.

ianwin

Programmer
Jul 5, 2005
44
US
I am developing an MS Outlook template which has VBscript behind it to control enabling and disabling of controls etc. This email gets sent to several different addresses who each complete part of the form. There are 3 pages on the form and I would like to bring the correct page to the front depending on who opens the email. I can get the users ID but when I try to change the focus I get the following error

"Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus"

I have found that this is because the control I am attempting to set the focus to is on a different page and is therefore hidden behind the curent page.

Does anyone know if I can change which page is in the foreground so that I can set focus to the correct control.

Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top