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

How do I validate a field in a Outlook 2003 Form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 29th 07, 04:46 PM posted to microsoft.public.outlook.program_forms
Zana
external usenet poster
 
Posts: 5
Default How do I validate a field in a Outlook 2003 Form

Hi,

I wonder if you could help me. I am having difficulties with validating
fields in an Outlook 2003 form.

Region: 1l Area: a, b
Region: 2l Area: c, d
Region: 3l Area: e, f

In my form I have created a ComboBox called “Region” containing values 1, 2
and 3. The values in my next ComboBox called “Area” should be dependent on
the value selected in the first ComboBox “Region” e. g. if a user selected
Region “1”, in Area there should be values “a” and “b”, if a user selected
Region “2”, in Area there should be values “c” and “d” and so on…

I would be very grateful if you could help me

Thanks

Zuzana

  #2  
Old February 1st 07, 01:56 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How do I validate a field in a Outlook 2003 Form

Some missing info: Are Region and Area the names of Outlook custom properties? Is Area a multi-select combo box since you' talking about it having multiple values? (Can't say that I've ever seen one)
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Zana" wrote in message ...
Hi,

I wonder if you could help me. I am having difficulties with validating
fields in an Outlook 2003 form.

Region: 1l Area: a, b
Region: 2l Area: c, d
Region: 3l Area: e, f

In my form I have created a ComboBox called “Region” containing values 1, 2
and 3. The values in my next ComboBox called “Area” should be dependent on
the value selected in the first ComboBox “Region” e. g. if a user selected
Region “1”, in Area there should be values “a” and “b”, if a user selected
Region “2”, in Area there should be values “c” and “d” and so on…

I would be very grateful if you could help me

Thanks

Zuzana

  #3  
Old February 2nd 07, 04:57 PM posted to microsoft.public.outlook.program_forms
Zana
external usenet poster
 
Posts: 5
Default How do I validate a field in a Outlook 2003 Form

Dear Sue,

Thank you for your response. As you are probably aware, from my first email,
I am a novice in this area, therefore I am not sure what you mean by Outlook
custom properties. However, in answer to your second question, both "Region"
and "Area" are Multi-select combo boxes, each of which contains a list of
values. What I am trying to do is make the list of values in the "Area" combo
box dependent on the selection from the "Region" combo box.

Thank you for your help

Zuzana



"Sue Mosher [MVP-Outlook]" wrote:

Some missing info: Are Region and Area the names of Outlook custom properties? Is Area a multi-select combo box since you' talking about it having multiple values? (Can't say that I've ever seen one)
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Zana" wrote in message ...
Hi,

I wonder if you could help me. I am having difficulties with validating
fields in an Outlook 2003 form.

Region: 1l Area: a, b
Region: 2l Area: c, d
Region: 3l Area: e, f

In my form I have created a ComboBox called “Region” containing values 1, 2
and 3. The values in my next ComboBox called “Area” should be dependent on
the value selected in the first ComboBox “Region” e. g. if a user selected
Region “1”, in Area there should be values “a” and “b”, if a user selected
Region “2”, in Area there should be values “c” and “d” and so on…

I would be very grateful if you could help me

Thanks

Zuzana


  #4  
Old February 2nd 07, 05:05 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How do I validate a field in a Outlook 2003 Form

Outlook uses properties to store data in items. A control on a custom form can be bound to a custom property, so that data entered into the control is stored in the property, and data in the property is visible in the control. A control can also be unbound. In that case, Outlook discards any data in the control when the item is saved.

The distinction is important for many reasons: Whether a control is bound or unbound determines (a) what event to use to respond to the user's interaction with the control, (b) the best syntax for accessing the data value in the control, (c) whether the data in the control can be used in a validation formula.

The Properties dialog for the control tells you on its first tab the name of the control, and on its second tab, the name of the field, if any, that is bound to the control. We need both pieces of informaton -- the name of the control and the name of the property, if any, that the control is bound to.

Also, since Region is a multi-select combo box, can you give an example of how multiple selections in it would affect the Area box?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Zana" wrote in message ...
Dear Sue,

Thank you for your response. As you are probably aware, from my first email,
I am a novice in this area, therefore I am not sure what you mean by Outlook
custom properties. However, in answer to your second question, both "Region"
and "Area" are Multi-select combo boxes, each of which contains a list of
values. What I am trying to do is make the list of values in the "Area" combo
box dependent on the selection from the "Region" combo box.

Thank you for your help

Zuzana

"Sue Mosher [MVP-Outlook]" wrote:

Some missing info: Are Region and Area the names of Outlook custom properties? Is Area a multi-select combo box since you' talking about it having multiple values? (Can't say that I've ever seen one)

"Zana" wrote in message ...
Hi,

I wonder if you could help me. I am having difficulties with validating
fields in an Outlook 2003 form.

Region: 1l Area: a, b
Region: 2l Area: c, d
Region: 3l Area: e, f

In my form I have created a ComboBox called “Region” containing values 1, 2
and 3. The values in my next ComboBox called “Area” should be dependent on
the value selected in the first ComboBox “Region” e. g. if a user selected
Region “1”, in Area there should be values “a” and “b”, if a user selected
Region “2”, in Area there should be values “c” and “d” and so on…

I would be very grateful if you could help me

Thanks

Zuzana


  #5  
Old February 5th 07, 03:48 PM posted to microsoft.public.outlook.program_forms
Zana
external usenet poster
 
Posts: 5
Default How do I validate a field in a Outlook 2003 Form

We will have two boxes:

1/ "Region" as a multiple combo box which contains values 1, 2, 3 and 4;
2/ "Area" combo box which contains values a, b, c, d, e, f, g, h.

If a user selects 1 from the "Region", multiple combo box, then I want the
“Area" multiple combo box to display, ONLY, the values "a" and “b".

If 2 is selected from the "Region" multiple combo box, then I want the
"Area" multiple combo box to display, ONLY, the values "c" and "d".

If 3 is selected from the "Region” multiple combo box, then I want the
“Area" multiple combo box to display, ONLY, the values "e" and “f".

And finally,

If 4 is selected from the "Region" multiple combo box, then I want the
"Area" multiple combo box to display, ONLY, the values "g" and "h".


"Sue Mosher [MVP-Outlook]" wrote:

Outlook uses properties to store data in items. A control on a custom form can be bound to a custom property, so that data entered into the control is stored in the property, and data in the property is visible in the control. A control can also be unbound. In that case, Outlook discards any data in the control when the item is saved.

The distinction is important for many reasons: Whether a control is bound or unbound determines (a) what event to use to respond to the user's interaction with the control, (b) the best syntax for accessing the data value in the control, (c) whether the data in the control can be used in a validation formula.

The Properties dialog for the control tells you on its first tab the name of the control, and on its second tab, the name of the field, if any, that is bound to the control. We need both pieces of informaton -- the name of the control and the name of the property, if any, that the control is bound to.

Also, since Region is a multi-select combo box, can you give an example of how multiple selections in it would affect the Area box?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Zana" wrote in message ...
Dear Sue,

Thank you for your response. As you are probably aware, from my first email,
I am a novice in this area, therefore I am not sure what you mean by Outlook
custom properties. However, in answer to your second question, both "Region"
and "Area" are Multi-select combo boxes, each of which contains a list of
values. What I am trying to do is make the list of values in the "Area" combo
box dependent on the selection from the "Region" combo box.

Thank you for your help

Zuzana

"Sue Mosher [MVP-Outlook]" wrote:

Some missing info: Are Region and Area the names of Outlook custom properties? Is Area a multi-select combo box since you' talking about it having multiple values? (Can't say that I've ever seen one)

"Zana" wrote in message ...
Hi,

I wonder if you could help me. I am having difficulties with validating
fields in an Outlook 2003 form.

Region: 1l Area: a, b
Region: 2l Area: c, d
Region: 3l Area: e, f

In my form I have created a ComboBox called “Region” containing values 1, 2
and 3. The values in my next ComboBox called “Area” should be dependent on
the value selected in the first ComboBox “Region” e. g. if a user selected
Region “1”, in Area there should be values “a” and “b”, if a user selected
Region “2”, in Area there should be values “c” and “d” and so on…

I would be very grateful if you could help me

Thanks

Zuzana



  #6  
Old February 5th 07, 04:58 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How do I validate a field in a Outlook 2003 Form

Still need to know about the properties, not just the controls.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Zana" wrote in message ...
We will have two boxes:

1/ "Region" as a multiple combo box which contains values 1, 2, 3 and 4;
2/ "Area" combo box which contains values a, b, c, d, e, f, g, h.

If a user selects 1 from the "Region", multiple combo box, then I want the
“Area" multiple combo box to display, ONLY, the values "a" and “b".

If 2 is selected from the "Region" multiple combo box, then I want the
"Area" multiple combo box to display, ONLY, the values "c" and "d".

If 3 is selected from the "Region” multiple combo box, then I want the
“Area" multiple combo box to display, ONLY, the values "e" and “f".

And finally,

If 4 is selected from the "Region" multiple combo box, then I want the
"Area" multiple combo box to display, ONLY, the values "g" and "h".


"Sue Mosher [MVP-Outlook]" wrote:

Outlook uses properties to store data in items. A control on a custom form can be bound to a custom property, so that data entered into the control is stored in the property, and data in the property is visible in the control. A control can also be unbound. In that case, Outlook discards any data in the control when the item is saved.

The distinction is important for many reasons: Whether a control is bound or unbound determines (a) what event to use to respond to the user's interaction with the control, (b) the best syntax for accessing the data value in the control, (c) whether the data in the control can be used in a validation formula.

The Properties dialog for the control tells you on its first tab the name of the control, and on its second tab, the name of the field, if any, that is bound to the control. We need both pieces of informaton -- the name of the control and the name of the property, if any, that the control is bound to.

Also, since Region is a multi-select combo box, can you give an example of how multiple selections in it would affect the Area box?

"Zana" wrote in message ...
Dear Sue,

Thank you for your response. As you are probably aware, from my first email,
I am a novice in this area, therefore I am not sure what you mean by Outlook
custom properties. However, in answer to your second question, both "Region"
and "Area" are Multi-select combo boxes, each of which contains a list of
values. What I am trying to do is make the list of values in the "Area" combo
box dependent on the selection from the "Region" combo box.

Thank you for your help

Zuzana

"Sue Mosher [MVP-Outlook]" wrote:

Some missing info: Are Region and Area the names of Outlook custom properties? Is Area a multi-select combo box since you' talking about it having multiple values? (Can't say that I've ever seen one)

"Zana" wrote in message ...
Hi,

I wonder if you could help me. I am having difficulties with validating
fields in an Outlook 2003 form.

Region: 1l Area: a, b
Region: 2l Area: c, d
Region: 3l Area: e, f

In my form I have created a ComboBox called “Region” containing values 1, 2
and 3. The values in my next ComboBox called “Area” should be dependent on
the value selected in the first ComboBox “Region” e. g. if a user selected
Region “1”, in Area there should be values “a” and “b”, if a user selected
Region “2”, in Area there should be values “c” and “d” and so on…

I would be very grateful if you could help me

Thanks

Zuzana



 




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
Outlook Form and the Subject Field roblowein Outlook - General Queries 1 January 4th 07 05:30 PM
Validate field on assign task - Outlook 2003 Forbesy Outlook - Using Forms 0 October 11th 06 04:19 AM
Copying Data form user field to custom field [email protected] Outlook - Using Contacts 1 September 4th 06 07:32 PM
Outlook form-texbox field BD Outlook - Using Forms 5 May 30th 06 05:34 PM
Populate Company field from Contact field in custom task form Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 08:37 PM


All times are GMT +1. The time now is 08:45 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.