prob with radio buttons

W

Wayne

Im having a problem getting the radio button values to show up on the
Read Page.

On the Value tab of the Properties, I have each radio button with the
same Field Name. All types are set to Yes/No. Property is set to
Value. Value is set to OptionButton1, OptionButton2 and so on. All
properties are set the same on both the compose and read pages - is
this the problem? What do I need to do to have the read page showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little code
knowledge. Is there a way of inserting the current user's name, or
alias? For instance, I want the user's name to appear in the subject
line. I did read somewhere a variable(?) which was something like
[CurrentUser] - is that right? If so, how could I insert it as the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is a
supervisor and wants to approve/disapprove of the sent email. I can
put this into the read page, but then the supervisor needs to send it
to the next person, and if they use Forward then the email reverts
back to the Compose page design which doesn't have the fields. Im
thinking the best way to do this, if it's possible, would be to hide
the approval radio buttons from the original email, and then have them
appear when the user sending the approval does not equal the original
user. Is this possible with VB?

Thanks so much for any info
 
S

Sue Mosher [MVP-Outlook]

1) I'm confused. A Yes/No field can have only two option buttons bound to
it -- one for the value Yes/True and one for the value No/False -- and those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us your
version of Outlook.) See http://www.outlookcode.com/d/propsyntax.htm if you
need help with the syntax for setting and reading item property values.

3) All Outlook form code is VBScript, not VB. Whether this is feasible
depends on whether you can publish the form to the Organizational Forms
library on the Exchange server.
 
G

Guest

1) That may be why Im having troubles. I have 6 radio buttons in one
section. What type of field should I use? I dont want to use checkboxes as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000 shortly I
believe). Im unsure if I should use the Namespace.CurrentUser method in
setting the initial value or if it should be put into the Script Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it needs to be
accessible by 100 users, so I assume this is the best way? I haven't looked
into that part yet.

Sue Mosher said:
1) I'm confused. A Yes/No field can have only two option buttons bound to
it -- one for the value Yes/True and one for the value No/False -- and those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us your
version of Outlook.) See http://www.outlookcode.com/d/propsyntax.htm if you
need help with the syntax for setting and reading item property values.

3) All Outlook form code is VBScript, not VB. Whether this is feasible
depends on whether you can publish the form to the Organizational Forms
library on the Exchange server.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
Im having a problem getting the radio button values to show up on the
Read Page.

On the Value tab of the Properties, I have each radio button with the
same Field Name. All types are set to Yes/No. Property is set to
Value. Value is set to OptionButton1, OptionButton2 and so on. All
properties are set the same on both the compose and read pages - is
this the problem? What do I need to do to have the read page showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little code
knowledge. Is there a way of inserting the current user's name, or
alias? For instance, I want the user's name to appear in the subject
line. I did read somewhere a variable(?) which was something like
[CurrentUser] - is that right? If so, how could I insert it as the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is a
supervisor and wants to approve/disapprove of the sent email. I can
put this into the read page, but then the supervisor needs to send it
to the next person, and if they use Forward then the email reverts
back to the Compose page design which doesn't have the fields. Im
thinking the best way to do this, if it's possible, would be to hide
the approval radio buttons from the original email, and then have them
appear when the user sending the approval does not equal the original
user. Is this possible with VB?

Thanks so much for any info
 
S

Sue Mosher [MVP-Outlook]

1) The type of control you use will depend on the type of field, which
depends on the type of information you want to save. It's not clear from
your original message what that might be. Maybe you could elaborate?

2) As a property of the Namespace object, you can use CurrentUser only in
your form's code, not in a formula.

3) Org Forms is the right place! Since you're doing that, you can put code
in the Item_Open event handler to show/hide controls depending on the value
of CurrentUser.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
1) That may be why Im having troubles. I have 6 radio buttons in one
section. What type of field should I use? I dont want to use checkboxes
as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000 shortly I
believe). Im unsure if I should use the Namespace.CurrentUser method in
setting the initial value or if it should be put into the Script Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it needs to
be
accessible by 100 users, so I assume this is the best way? I haven't
looked
into that part yet.

Sue Mosher said:
1) I'm confused. A Yes/No field can have only two option buttons bound to
it -- one for the value Yes/True and one for the value No/False -- and
those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us your
version of Outlook.) See http://www.outlookcode.com/d/propsyntax.htm if
you
need help with the syntax for setting and reading item property values.

3) All Outlook form code is VBScript, not VB. Whether this is feasible
depends on whether you can publish the form to the Organizational Forms
library on the Exchange server.

Wayne said:
Im having a problem getting the radio button values to show up on the
Read Page.

On the Value tab of the Properties, I have each radio button with the
same Field Name. All types are set to Yes/No. Property is set to
Value. Value is set to OptionButton1, OptionButton2 and so on. All
properties are set the same on both the compose and read pages - is
this the problem? What do I need to do to have the read page showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little code
knowledge. Is there a way of inserting the current user's name, or
alias? For instance, I want the user's name to appear in the subject
line. I did read somewhere a variable(?) which was something like
[CurrentUser] - is that right? If so, how could I insert it as the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is a
supervisor and wants to approve/disapprove of the sent email. I can
put this into the read page, but then the supervisor needs to send it
to the next person, and if they use Forward then the email reverts
back to the Compose page design which doesn't have the fields. Im
thinking the best way to do this, if it's possible, would be to hide
the approval radio buttons from the original email, and then have them
appear when the user sending the approval does not equal the original
user. Is this possible with VB?

Thanks so much for any info
 
G

Guest

1) Basically what Im trying to do is have the user select 1 option from a
list of 6 radio buttons, and have the value that was selected shown in the
read layout. I read somewhere in the MSDN library that this needs to be
coded?? But I have no idea how to begin coding (im struggling to find some
examples to get me on the right track).

2) Maybe you could give me an example of how to code it? With my beginner
skills, I would think that it might be something like "Item.Subject =
Application.GetNameSpace("MAPI").CurrentUser" ???

3) Think I'll research that hurdle when I get over #2 :)

Thanks so much for your help.


Sue Mosher said:
1) The type of control you use will depend on the type of field, which
depends on the type of information you want to save. It's not clear from
your original message what that might be. Maybe you could elaborate?

2) As a property of the Namespace object, you can use CurrentUser only in
your form's code, not in a formula.

3) Org Forms is the right place! Since you're doing that, you can put code
in the Item_Open event handler to show/hide controls depending on the value
of CurrentUser.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
1) That may be why Im having troubles. I have 6 radio buttons in one
section. What type of field should I use? I dont want to use checkboxes
as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000 shortly I
believe). Im unsure if I should use the Namespace.CurrentUser method in
setting the initial value or if it should be put into the Script Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it needs to
be
accessible by 100 users, so I assume this is the best way? I haven't
looked
into that part yet.

Sue Mosher said:
1) I'm confused. A Yes/No field can have only two option buttons bound to
it -- one for the value Yes/True and one for the value No/False -- and
those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us your
version of Outlook.) See http://www.outlookcode.com/d/propsyntax.htm if
you
need help with the syntax for setting and reading item property values.

3) All Outlook form code is VBScript, not VB. Whether this is feasible
depends on whether you can publish the form to the Organizational Forms
library on the Exchange server.

Im having a problem getting the radio button values to show up on the
Read Page.

On the Value tab of the Properties, I have each radio button with the
same Field Name. All types are set to Yes/No. Property is set to
Value. Value is set to OptionButton1, OptionButton2 and so on. All
properties are set the same on both the compose and read pages - is
this the problem? What do I need to do to have the read page showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little code
knowledge. Is there a way of inserting the current user's name, or
alias? For instance, I want the user's name to appear in the subject
line. I did read somewhere a variable(?) which was something like
[CurrentUser] - is that right? If so, how could I insert it as the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is a
supervisor and wants to approve/disapprove of the sent email. I can
put this into the read page, but then the supervisor needs to send it
to the next person, and if they use Forward then the email reverts
back to the Compose page design which doesn't have the fields. Im
thinking the best way to do this, if it's possible, would be to hide
the approval radio buttons from the original email, and then have them
appear when the user sending the approval does not equal the original
user. Is this possible with VB?

Thanks so much for any info
 
G

Guest

damn i posted a reply but it had an error, now to remember it all...

1) Im using 6 radio buttons and I want the radio button that was chosen to
appear in the read layout. I changed the format to on/off (it was set to
icon whatever that is?) but that didn't help. I read somewhere on MSDN
library that it needs to be coded? I have no idea how.

2) My coding knowledge is extremely basic. Would you mind giving me an
example of how I would insert the current user's name into the subject line.
My attempt (obviously wrong, but just to show Im having a go):

Item.Subject = Application.GetNameSpace("MAPI").CurrentUser


3) I think I better leave this until I can build up my skills a bit more

Thanks so much for your help.

Sue Mosher said:
1) The type of control you use will depend on the type of field, which
depends on the type of information you want to save. It's not clear from
your original message what that might be. Maybe you could elaborate?

2) As a property of the Namespace object, you can use CurrentUser only in
your form's code, not in a formula.

3) Org Forms is the right place! Since you're doing that, you can put code
in the Item_Open event handler to show/hide controls depending on the value
of CurrentUser.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
1) That may be why Im having troubles. I have 6 radio buttons in one
section. What type of field should I use? I dont want to use checkboxes
as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000 shortly I
believe). Im unsure if I should use the Namespace.CurrentUser method in
setting the initial value or if it should be put into the Script Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it needs to
be
accessible by 100 users, so I assume this is the best way? I haven't
looked
into that part yet.

Sue Mosher said:
1) I'm confused. A Yes/No field can have only two option buttons bound to
it -- one for the value Yes/True and one for the value No/False -- and
those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us your
version of Outlook.) See http://www.outlookcode.com/d/propsyntax.htm if
you
need help with the syntax for setting and reading item property values.

3) All Outlook form code is VBScript, not VB. Whether this is feasible
depends on whether you can publish the form to the Organizational Forms
library on the Exchange server.

Im having a problem getting the radio button values to show up on the
Read Page.

On the Value tab of the Properties, I have each radio button with the
same Field Name. All types are set to Yes/No. Property is set to
Value. Value is set to OptionButton1, OptionButton2 and so on. All
properties are set the same on both the compose and read pages - is
this the problem? What do I need to do to have the read page showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little code
knowledge. Is there a way of inserting the current user's name, or
alias? For instance, I want the user's name to appear in the subject
line. I did read somewhere a variable(?) which was something like
[CurrentUser] - is that right? If so, how could I insert it as the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is a
supervisor and wants to approve/disapprove of the sent email. I can
put this into the read page, but then the supervisor needs to send it
to the next person, and if they use Forward then the email reverts
back to the Compose page design which doesn't have the fields. Im
thinking the best way to do this, if it's possible, would be to hide
the approval radio buttons from the original email, and then have them
appear when the user sending the approval does not equal the original
user. Is this possible with VB?

Thanks so much for any info
 
S

Sue Mosher [MVP-Outlook]

1) Im using 6 radio buttons and I want the radio button that was chosen to
appear in the read layout. I changed the format to on/off (it was set to
icon whatever that is?) but that didn't help.

This still doesn't make sense. On/off means two possible choices for the
field value -- Yes/No, True/False, On/Off -- not . You can't turn that into
six.

Instead, each of the option buttons needs to be bound to the same ***text***
property. You put the desired value that corresponds to each button in the
Value tab of the button's control Properties, in the box marked Value. See
http://www.outlookcode.com/d/formcontrols.htm

2) That code statement is just fine on its own, but what's the context? What
event handler are you running it under? And if you don't understand what
that means, when do you want to set the subject -- when the item is created,
saved, etc.?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
damn i posted a reply but it had an error, now to remember it all...

1) Im using 6 radio buttons and I want the radio button that was chosen to
appear in the read layout. I changed the format to on/off (it was set to
icon whatever that is?) but that didn't help. I read somewhere on MSDN
library that it needs to be coded? I have no idea how.

2) My coding knowledge is extremely basic. Would you mind giving me an
example of how I would insert the current user's name into the subject
line.
My attempt (obviously wrong, but just to show Im having a go):

Item.Subject = Application.GetNameSpace("MAPI").CurrentUser


3) I think I better leave this until I can build up my skills a bit more

Thanks so much for your help.

Sue Mosher said:
1) The type of control you use will depend on the type of field, which
depends on the type of information you want to save. It's not clear from
your original message what that might be. Maybe you could elaborate?

2) As a property of the Namespace object, you can use CurrentUser only in
your form's code, not in a formula.

3) Org Forms is the right place! Since you're doing that, you can put
code
in the Item_Open event handler to show/hide controls depending on the
value
of CurrentUser.

Wayne said:
1) That may be why Im having troubles. I have 6 radio buttons in one
section. What type of field should I use? I dont want to use
checkboxes
as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000 shortly
I
believe). Im unsure if I should use the Namespace.CurrentUser method
in
setting the initial value or if it should be put into the Script
Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it needs
to
be
accessible by 100 users, so I assume this is the best way? I haven't
looked
into that part yet.

:

1) I'm confused. A Yes/No field can have only two option buttons bound
to
it -- one for the value Yes/True and one for the value No/False -- and
those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us your
version of Outlook.) See http://www.outlookcode.com/d/propsyntax.htm
if
you
need help with the syntax for setting and reading item property
values.

3) All Outlook form code is VBScript, not VB. Whether this is feasible
depends on whether you can publish the form to the Organizational
Forms
library on the Exchange server.
Im having a problem getting the radio button values to show up on
the
Read Page.

On the Value tab of the Properties, I have each radio button with
the
same Field Name. All types are set to Yes/No. Property is set to
Value. Value is set to OptionButton1, OptionButton2 and so on. All
properties are set the same on both the compose and read pages - is
this the problem? What do I need to do to have the read page
showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little code
knowledge. Is there a way of inserting the current user's name, or
alias? For instance, I want the user's name to appear in the
subject
line. I did read somewhere a variable(?) which was something like
[CurrentUser] - is that right? If so, how could I insert it as the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is a
supervisor and wants to approve/disapprove of the sent email. I can
put this into the read page, but then the supervisor needs to send
it
to the next person, and if they use Forward then the email reverts
back to the Compose page design which doesn't have the fields. Im
thinking the best way to do this, if it's possible, would be to hide
the approval radio buttons from the original email, and then have
them
appear when the user sending the approval does not equal the
original
user. Is this possible with VB?

Thanks so much for any info
 
G

Guest

1) Excellent thanks. Thought it would be a simple solution.

2) Yes I would just like it to set the subject when the message is composed.
Not too sure how to code it properly to do so though.

Thanks Sue.

Sue Mosher said:
1) Im using 6 radio buttons and I want the radio button that was chosen to
appear in the read layout. I changed the format to on/off (it was set to
icon whatever that is?) but that didn't help.

This still doesn't make sense. On/off means two possible choices for the
field value -- Yes/No, True/False, On/Off -- not . You can't turn that into
six.

Instead, each of the option buttons needs to be bound to the same ***text***
property. You put the desired value that corresponds to each button in the
Value tab of the button's control Properties, in the box marked Value. See
http://www.outlookcode.com/d/formcontrols.htm

2) That code statement is just fine on its own, but what's the context? What
event handler are you running it under? And if you don't understand what
that means, when do you want to set the subject -- when the item is created,
saved, etc.?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
damn i posted a reply but it had an error, now to remember it all...

1) Im using 6 radio buttons and I want the radio button that was chosen to
appear in the read layout. I changed the format to on/off (it was set to
icon whatever that is?) but that didn't help. I read somewhere on MSDN
library that it needs to be coded? I have no idea how.

2) My coding knowledge is extremely basic. Would you mind giving me an
example of how I would insert the current user's name into the subject
line.
My attempt (obviously wrong, but just to show Im having a go):

Item.Subject = Application.GetNameSpace("MAPI").CurrentUser


3) I think I better leave this until I can build up my skills a bit more

Thanks so much for your help.

Sue Mosher said:
1) The type of control you use will depend on the type of field, which
depends on the type of information you want to save. It's not clear from
your original message what that might be. Maybe you could elaborate?

2) As a property of the Namespace object, you can use CurrentUser only in
your form's code, not in a formula.

3) Org Forms is the right place! Since you're doing that, you can put
code
in the Item_Open event handler to show/hide controls depending on the
value
of CurrentUser.

1) That may be why Im having troubles. I have 6 radio buttons in one
section. What type of field should I use? I dont want to use
checkboxes
as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000 shortly
I
believe). Im unsure if I should use the Namespace.CurrentUser method
in
setting the initial value or if it should be put into the Script
Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it needs
to
be
accessible by 100 users, so I assume this is the best way? I haven't
looked
into that part yet.

:

1) I'm confused. A Yes/No field can have only two option buttons bound
to
it -- one for the value Yes/True and one for the value No/False -- and
those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us your
version of Outlook.) See http://www.outlookcode.com/d/propsyntax.htm
if
you
need help with the syntax for setting and reading item property
values.

3) All Outlook form code is VBScript, not VB. Whether this is feasible
depends on whether you can publish the form to the Organizational
Forms
library on the Exchange server.


Im having a problem getting the radio button values to show up on
the
Read Page.

On the Value tab of the Properties, I have each radio button with
the
same Field Name. All types are set to Yes/No. Property is set to
Value. Value is set to OptionButton1, OptionButton2 and so on. All
properties are set the same on both the compose and read pages - is
this the problem? What do I need to do to have the read page
showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little code
knowledge. Is there a way of inserting the current user's name, or
alias? For instance, I want the user's name to appear in the
subject
line. I did read somewhere a variable(?) which was something like
[CurrentUser] - is that right? If so, how could I insert it as the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is a
supervisor and wants to approve/disapprove of the sent email. I can
put this into the read page, but then the supervisor needs to send
it
to the next person, and if they use Forward then the email reverts
back to the Compose page design which doesn't have the fields. Im
thinking the best way to do this, if it's possible, would be to hide
the approval radio buttons from the original email, and then have
them
appear when the user sending the approval does not equal the
original
user. Is this possible with VB?

Thanks so much for any info
 
S

Sue Mosher [MVP-Outlook]

I don't know what you mean by "when the message is composed." Think about
the steps that the user takes to create and send a message -- open a blank
message form, type in some stuff, send it. Where in that process is the
subject supposed to be set?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
1) Excellent thanks. Thought it would be a simple solution.

2) Yes I would just like it to set the subject when the message is
composed.
Not too sure how to code it properly to do so though.

Thanks Sue.

Sue Mosher said:
1) Im using 6 radio buttons and I want the radio button that was chosen
to
appear in the read layout. I changed the format to on/off (it was set
to
icon whatever that is?) but that didn't help.

This still doesn't make sense. On/off means two possible choices for the
field value -- Yes/No, True/False, On/Off -- not . You can't turn that
into
six.

Instead, each of the option buttons needs to be bound to the same
***text***
property. You put the desired value that corresponds to each button in
the
Value tab of the button's control Properties, in the box marked Value.
See
http://www.outlookcode.com/d/formcontrols.htm

2) That code statement is just fine on its own, but what's the context?
What
event handler are you running it under? And if you don't understand what
that means, when do you want to set the subject -- when the item is
created,
saved, etc.?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
damn i posted a reply but it had an error, now to remember it all...

1) Im using 6 radio buttons and I want the radio button that was chosen
to
appear in the read layout. I changed the format to on/off (it was set
to
icon whatever that is?) but that didn't help. I read somewhere on MSDN
library that it needs to be coded? I have no idea how.

2) My coding knowledge is extremely basic. Would you mind giving me an
example of how I would insert the current user's name into the subject
line.
My attempt (obviously wrong, but just to show Im having a go):

Item.Subject = Application.GetNameSpace("MAPI").CurrentUser


3) I think I better leave this until I can build up my skills a bit
more

Thanks so much for your help.

:

1) The type of control you use will depend on the type of field,
which
depends on the type of information you want to save. It's not clear
from
your original message what that might be. Maybe you could elaborate?

2) As a property of the Namespace object, you can use CurrentUser only
in
your form's code, not in a formula.

3) Org Forms is the right place! Since you're doing that, you can put
code
in the Item_Open event handler to show/hide controls depending on the
value
of CurrentUser.

1) That may be why Im having troubles. I have 6 radio buttons in
one
section. What type of field should I use? I dont want to use
checkboxes
as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000
shortly
I
believe). Im unsure if I should use the Namespace.CurrentUser
method
in
setting the initial value or if it should be put into the Script
Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it
needs
to
be
accessible by 100 users, so I assume this is the best way? I
haven't
looked
into that part yet.

:

1) I'm confused. A Yes/No field can have only two option buttons
bound
to
it -- one for the value Yes/True and one for the value No/False --
and
those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us
your
version of Outlook.) See
http://www.outlookcode.com/d/propsyntax.htm
if
you
need help with the syntax for setting and reading item property
values.

3) All Outlook form code is VBScript, not VB. Whether this is
feasible
depends on whether you can publish the form to the Organizational
Forms
library on the Exchange server.


Im having a problem getting the radio button values to show up on
the
Read Page.

On the Value tab of the Properties, I have each radio button with
the
same Field Name. All types are set to Yes/No. Property is set
to
Value. Value is set to OptionButton1, OptionButton2 and so on.
All
properties are set the same on both the compose and read pages -
is
this the problem? What do I need to do to have the read page
showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little
code
knowledge. Is there a way of inserting the current user's name,
or
alias? For instance, I want the user's name to appear in the
subject
line. I did read somewhere a variable(?) which was something
like
[CurrentUser] - is that right? If so, how could I insert it as
the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is a
supervisor and wants to approve/disapprove of the sent email. I
can
put this into the read page, but then the supervisor needs to
send
it
to the next person, and if they use Forward then the email
reverts
back to the Compose page design which doesn't have the fields.
Im
thinking the best way to do this, if it's possible, would be to
hide
the approval radio buttons from the original email, and then have
them
appear when the user sending the approval does not equal the
original
user. Is this possible with VB?

Thanks so much for any info
 
G

Guest

the subject line should be filled in when the message is first opened by the
user who is composing it.

thanks

Sue Mosher said:
I don't know what you mean by "when the message is composed." Think about
the steps that the user takes to create and send a message -- open a blank
message form, type in some stuff, send it. Where in that process is the
subject supposed to be set?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
1) Excellent thanks. Thought it would be a simple solution.

2) Yes I would just like it to set the subject when the message is
composed.
Not too sure how to code it properly to do so though.

Thanks Sue.

Sue Mosher said:
1) Im using 6 radio buttons and I want the radio button that was chosen
to
appear in the read layout. I changed the format to on/off (it was set
to
icon whatever that is?) but that didn't help.

This still doesn't make sense. On/off means two possible choices for the
field value -- Yes/No, True/False, On/Off -- not . You can't turn that
into
six.

Instead, each of the option buttons needs to be bound to the same
***text***
property. You put the desired value that corresponds to each button in
the
Value tab of the button's control Properties, in the box marked Value.
See
http://www.outlookcode.com/d/formcontrols.htm

2) That code statement is just fine on its own, but what's the context?
What
event handler are you running it under? And if you don't understand what
that means, when do you want to set the subject -- when the item is
created,
saved, etc.?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



damn i posted a reply but it had an error, now to remember it all...

1) Im using 6 radio buttons and I want the radio button that was chosen
to
appear in the read layout. I changed the format to on/off (it was set
to
icon whatever that is?) but that didn't help. I read somewhere on MSDN
library that it needs to be coded? I have no idea how.

2) My coding knowledge is extremely basic. Would you mind giving me an
example of how I would insert the current user's name into the subject
line.
My attempt (obviously wrong, but just to show Im having a go):

Item.Subject = Application.GetNameSpace("MAPI").CurrentUser


3) I think I better leave this until I can build up my skills a bit
more

Thanks so much for your help.

:

1) The type of control you use will depend on the type of field,
which
depends on the type of information you want to save. It's not clear
from
your original message what that might be. Maybe you could elaborate?

2) As a property of the Namespace object, you can use CurrentUser only
in
your form's code, not in a formula.

3) Org Forms is the right place! Since you're doing that, you can put
code
in the Item_Open event handler to show/hide controls depending on the
value
of CurrentUser.

1) That may be why Im having troubles. I have 6 radio buttons in
one
section. What type of field should I use? I dont want to use
checkboxes
as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000
shortly
I
believe). Im unsure if I should use the Namespace.CurrentUser
method
in
setting the initial value or if it should be put into the Script
Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it
needs
to
be
accessible by 100 users, so I assume this is the best way? I
haven't
looked
into that part yet.

:

1) I'm confused. A Yes/No field can have only two option buttons
bound
to
it -- one for the value Yes/True and one for the value No/False --
and
those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us
your
version of Outlook.) See
http://www.outlookcode.com/d/propsyntax.htm
if
you
need help with the syntax for setting and reading item property
values.

3) All Outlook form code is VBScript, not VB. Whether this is
feasible
depends on whether you can publish the form to the Organizational
Forms
library on the Exchange server.


Im having a problem getting the radio button values to show up on
the
Read Page.

On the Value tab of the Properties, I have each radio button with
the
same Field Name. All types are set to Yes/No. Property is set
to
Value. Value is set to OptionButton1, OptionButton2 and so on.
All
properties are set the same on both the compose and read pages -
is
this the problem? What do I need to do to have the read page
showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little
code
knowledge. Is there a way of inserting the current user's name,
or
alias? For instance, I want the user's name to appear in the
subject
line. I did read somewhere a variable(?) which was something
like
[CurrentUser] - is that right? If so, how could I insert it as
the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is a
supervisor and wants to approve/disapprove of the sent email. I
can
put this into the read page, but then the supervisor needs to
send
it
to the next person, and if they use Forward then the email
reverts
back to the Compose page design which doesn't have the fields.
Im
thinking the best way to do this, if it's possible, would be to
hide
the approval radio buttons from the original email, and then have
them
appear when the user sending the approval does not equal the
original
user. Is this possible with VB?

Thanks so much for any info
 
S

Sue Mosher [MVP-Outlook]

Then you'd use the Open event and check the size of the item to determine
whether it's a new item:

Function Item_Open()
If Item.Size = 0 Then
Item.Subject = Application.GetNameSpace("MAPI").CurrentUser
End If
End Function

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
the subject line should be filled in when the message is first opened by
the
user who is composing it.

thanks

Sue Mosher said:
I don't know what you mean by "when the message is composed." Think about
the steps that the user takes to create and send a message -- open a
blank
message form, type in some stuff, send it. Where in that process is the
subject supposed to be set?

Wayne said:
1) Excellent thanks. Thought it would be a simple solution.

2) Yes I would just like it to set the subject when the message is
composed.
Not too sure how to code it properly to do so though.

Thanks Sue.

:

1) Im using 6 radio buttons and I want the radio button that was
chosen
to
appear in the read layout. I changed the format to on/off (it was
set
to
icon whatever that is?) but that didn't help.

This still doesn't make sense. On/off means two possible choices for
the
field value -- Yes/No, True/False, On/Off -- not . You can't turn that
into
six.

Instead, each of the option buttons needs to be bound to the same
***text***
property. You put the desired value that corresponds to each button in
the
Value tab of the button's control Properties, in the box marked Value.
See
http://www.outlookcode.com/d/formcontrols.htm

2) That code statement is just fine on its own, but what's the
context?
What
event handler are you running it under? And if you don't understand
what
that means, when do you want to set the subject -- when the item is
created,
saved, etc.?

damn i posted a reply but it had an error, now to remember it all...

1) Im using 6 radio buttons and I want the radio button that was
chosen
to
appear in the read layout. I changed the format to on/off (it was
set
to
icon whatever that is?) but that didn't help. I read somewhere on
MSDN
library that it needs to be coded? I have no idea how.

2) My coding knowledge is extremely basic. Would you mind giving me
an
example of how I would insert the current user's name into the
subject
line.
My attempt (obviously wrong, but just to show Im having a go):

Item.Subject = Application.GetNameSpace("MAPI").CurrentUser


3) I think I better leave this until I can build up my skills a bit
more

Thanks so much for your help.

:

1) The type of control you use will depend on the type of field,
which
depends on the type of information you want to save. It's not clear
from
your original message what that might be. Maybe you could
elaborate?

2) As a property of the Namespace object, you can use CurrentUser
only
in
your form's code, not in a formula.

3) Org Forms is the right place! Since you're doing that, you can
put
code
in the Item_Open event handler to show/hide controls depending on
the
value
of CurrentUser.

1) That may be why Im having troubles. I have 6 radio buttons in
one
section. What type of field should I use? I dont want to use
checkboxes
as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000
shortly
I
believe). Im unsure if I should use the Namespace.CurrentUser
method
in
setting the initial value or if it should be put into the Script
Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it
needs
to
be
accessible by 100 users, so I assume this is the best way? I
haven't
looked
into that part yet.

:

1) I'm confused. A Yes/No field can have only two option buttons
bound
to
it -- one for the value Yes/True and one for the value
No/False --
and
those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us
your
version of Outlook.) See
http://www.outlookcode.com/d/propsyntax.htm
if
you
need help with the syntax for setting and reading item property
values.

3) All Outlook form code is VBScript, not VB. Whether this is
feasible
depends on whether you can publish the form to the
Organizational
Forms
library on the Exchange server.


Im having a problem getting the radio button values to show up
on
the
Read Page.

On the Value tab of the Properties, I have each radio button
with
the
same Field Name. All types are set to Yes/No. Property is
set
to
Value. Value is set to OptionButton1, OptionButton2 and so
on.
All
properties are set the same on both the compose and read
pages -
is
this the problem? What do I need to do to have the read page
showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little
code
knowledge. Is there a way of inserting the current user's
name,
or
alias? For instance, I want the user's name to appear in the
subject
line. I did read somewhere a variable(?) which was something
like
[CurrentUser] - is that right? If so, how could I insert it
as
the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is
a
supervisor and wants to approve/disapprove of the sent email.
I
can
put this into the read page, but then the supervisor needs to
send
it
to the next person, and if they use Forward then the email
reverts
back to the Compose page design which doesn't have the fields.
Im
thinking the best way to do this, if it's possible, would be
to
hide
the approval radio buttons from the original email, and then
have
them
appear when the user sending the approval does not equal the
original
user. Is this possible with VB?

Thanks so much for any info
 
G

Guest

thanks you're a legend!

Sue Mosher said:
Then you'd use the Open event and check the size of the item to determine
whether it's a new item:

Function Item_Open()
If Item.Size = 0 Then
Item.Subject = Application.GetNameSpace("MAPI").CurrentUser
End If
End Function

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Wayne said:
the subject line should be filled in when the message is first opened by
the
user who is composing it.

thanks

Sue Mosher said:
I don't know what you mean by "when the message is composed." Think about
the steps that the user takes to create and send a message -- open a
blank
message form, type in some stuff, send it. Where in that process is the
subject supposed to be set?

1) Excellent thanks. Thought it would be a simple solution.

2) Yes I would just like it to set the subject when the message is
composed.
Not too sure how to code it properly to do so though.

Thanks Sue.

:

1) Im using 6 radio buttons and I want the radio button that was
chosen
to
appear in the read layout. I changed the format to on/off (it was
set
to
icon whatever that is?) but that didn't help.

This still doesn't make sense. On/off means two possible choices for
the
field value -- Yes/No, True/False, On/Off -- not . You can't turn that
into
six.

Instead, each of the option buttons needs to be bound to the same
***text***
property. You put the desired value that corresponds to each button in
the
Value tab of the button's control Properties, in the box marked Value.
See
http://www.outlookcode.com/d/formcontrols.htm

2) That code statement is just fine on its own, but what's the
context?
What
event handler are you running it under? And if you don't understand
what
that means, when do you want to set the subject -- when the item is
created,
saved, etc.?

damn i posted a reply but it had an error, now to remember it all...

1) Im using 6 radio buttons and I want the radio button that was
chosen
to
appear in the read layout. I changed the format to on/off (it was
set
to
icon whatever that is?) but that didn't help. I read somewhere on
MSDN
library that it needs to be coded? I have no idea how.

2) My coding knowledge is extremely basic. Would you mind giving me
an
example of how I would insert the current user's name into the
subject
line.
My attempt (obviously wrong, but just to show Im having a go):

Item.Subject = Application.GetNameSpace("MAPI").CurrentUser


3) I think I better leave this until I can build up my skills a bit
more

Thanks so much for your help.

:

1) The type of control you use will depend on the type of field,
which
depends on the type of information you want to save. It's not clear
from
your original message what that might be. Maybe you could
elaborate?

2) As a property of the Namespace object, you can use CurrentUser
only
in
your form's code, not in a formula.

3) Org Forms is the right place! Since you're doing that, you can
put
code
in the Item_Open event handler to show/hide controls depending on
the
value
of CurrentUser.

1) That may be why Im having troubles. I have 6 radio buttons in
one
section. What type of field should I use? I dont want to use
checkboxes
as
only one radio button should be used.

2) Version is 2003 with Exchange 5.5 (will be upgraded to 2000
shortly
I
believe). Im unsure if I should use the Namespace.CurrentUser
method
in
setting the initial value or if it should be put into the Script
Editor?
Sorry Im just a beginner without a clue!

3) Im planning on publishing it in the Organizational forms, it
needs
to
be
accessible by 100 users, so I assume this is the best way? I
haven't
looked
into that part yet.

:

1) I'm confused. A Yes/No field can have only two option buttons
bound
to
it -- one for the value Yes/True and one for the value
No/False --
and
those
would be the values you'd need to set on the Value tab.

2) Take a look at the Namespace.CurrentUser method. (And tell us
your
version of Outlook.) See
http://www.outlookcode.com/d/propsyntax.htm
if
you
need help with the syntax for setting and reading item property
values.

3) All Outlook form code is VBScript, not VB. Whether this is
feasible
depends on whether you can publish the form to the
Organizational
Forms
library on the Exchange server.


Im having a problem getting the radio button values to show up
on
the
Read Page.

On the Value tab of the Properties, I have each radio button
with
the
same Field Name. All types are set to Yes/No. Property is
set
to
Value. Value is set to OptionButton1, OptionButton2 and so
on.
All
properties are set the same on both the compose and read
pages -
is
this the problem? What do I need to do to have the read page
showing
what radio button was used in the compose page?

I have 2 other questions. I dont know VBA, but have a little
code
knowledge. Is there a way of inserting the current user's
name,
or
alias? For instance, I want the user's name to appear in the
subject
line. I did read somewhere a variable(?) which was something
like
[CurrentUser] - is that right? If so, how could I insert it
as
the
initial value in the subject line?

Next question is: With my form I want the recipient to have an
additional 2 radio buttons for approval, i.e. the recipient is
a
supervisor and wants to approve/disapprove of the sent email.
I
can
put this into the read page, but then the supervisor needs to
send
it
to the next person, and if they use Forward then the email
reverts
back to the Compose page design which doesn't have the fields.
Im
thinking the best way to do this, if it's possible, would be
to
hide
the approval radio buttons from the original email, and then
have
them
appear when the user sending the approval does not equal the
original
user. Is this possible with VB?

Thanks so much for any info
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top