A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2003: check if control does exist (VBScript)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 12th 07, 05:45 PM posted to microsoft.public.outlook.program_forms
Oskar Vaia
external usenet poster
 
Posts: 29
Default Outlook 2003: check if control does exist (VBScript)

Hi,

i'm develop a new taskform.
On the item_open-event i need to check if a control exist or not. How can i
accomplish this?

thanks & bye

Oskar

Ads
  #2  
Old October 12th 07, 06:01 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003: check if control does exist (VBScript)

Function Item_Open()
On Error Resume Next
Set pg = Item.GetInspector.ModifiedFormPages("My page")
Set ctrl = pg.Controls("My control")
If Not ctrl Is Nothing Then
' the control exists
Else
' it doesn't exist
End If
End Function

See http://www.outlookcode.com/article.aspx?ID=38 for more on Outlook property and control syntax.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Oskar Vaia" wrote in message ...
Hi,

i'm develop a new taskform.
On the item_open-event i need to check if a control exist or not. How can i
accomplish this?

thanks & bye

Oskar

  #3  
Old October 13th 07, 08:05 AM posted to microsoft.public.outlook.program_forms
Oskar Vaia
external usenet poster
 
Posts: 29
Default Outlook 2003: check if control does exist (VBScript)

Hi Sue,

thanks very much for your help.

bye

Oskar

  #4  
Old October 13th 07, 08:27 AM posted to microsoft.public.outlook.program_forms
Oskar Vaia
external usenet poster
 
Posts: 29
Default Outlook 2003: check if control does exist (VBScript)

Hi Sue,

now i have seen, that with this method i only check if the control exists.
What have i to do, if i want to verify if the bind field to a control does
already exist in the store or not?

bye

Oskar

  #5  
Old October 13th 07, 10:53 AM posted to microsoft.public.outlook.program_forms
Oskar Vaia
external usenet poster
 
Posts: 29
Default Outlook 2003: check if control does exist (VBScript)

Hi Sue,

i have resolved my problem with the control of the field-value for the value
#1/1/4501#.
I think this is the right way. What do you mean?

bye

Oskar

  #6  
Old October 13th 07, 03:52 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003: check if control does exist (VBScript)

Sorry, but I don't know what you are referring to when you ask "what do you mean?"

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Oskar Vaia" wrote in message ...
Hi Sue,

i have resolved my problem with the control of the field-value for the value
#1/1/4501#.
I think this is the right way. What do you mean?

bye

Oskar

  #7  
Old October 13th 07, 03:53 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003: check if control does exist (VBScript)

Exist in the folder's field definitions or exist in the item?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Oskar Vaia" wrote in message ...
Hi Sue,

now i have seen, that with this method i only check if the control exists.
What have i to do, if i want to verify if the bind field to a control does
already exist in the store or not?

bye

Oskar

  #8  
Old October 15th 07, 02:47 PM posted to microsoft.public.outlook.program_forms
Oskar Vaia
external usenet poster
 
Posts: 29
Default Outlook 2003: check if control does exist (VBScript)

Hi Sue,

Sorry, but I don't know what you are referring to when you ask "what do you
mean?"


i refer to the problem for check if a field does already exists in the store
or not.
i do this with the check of the field-value #1/1/4501#.

thx & bye

Oskar

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exchange 2003: The e-mail account does not exist at the organization" when sending to ONE INTERNAL user KingCronos Outlook - General Queries 3 October 5th 07 01:20 PM
Outlook 2003 VBscript.dll error DianeC Outlook - Installation 3 April 5th 07 12:04 PM
Outlook View Control embedded in custom control [email protected] Outlook - General Queries 1 November 8th 06 12:41 PM
Outlook View Control embedded in custom control [email protected] Outlook - Using Forms 1 November 8th 06 12:41 PM
Outlook 2003 ADO connection string for use with VBScript... M Scott S Outlook and VBA 14 May 31st 06 11:14 PM


All times are GMT +1. The time now is 04:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.