Command Button Script

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Trying to write script to manupulate fields on custom contact form.

Sub CommandButton1 Click()
x=value
[customfield_name]= x
End Sub

It doesn't work. Any help on code to change value of:
default field like [FirstName]
or a user defined field [custom_name]

TIA,
Joel
 
Thanks Sue:

What i really wanted to do format data using a Mask. I posted a question
about Masks for user defined fields and no one responded. I figured I would
create a script to format the data and have using a command button to trigger
the event Click.

One last question. As far as the Script events, is there an event that runs
after the control has lost focus?

Thanks again,

Joel

Sue Mosher said:
See http://www.outlookcode.com/d/propsyntax.htm for a primer on Outlook
property syntax.

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



Joel said:
Trying to write script to manupulate fields on custom contact form.

Sub CommandButton1 Click()
x=value
[customfield_name]= x
End Sub

It doesn't work. Any help on code to change value of:
default field like [FirstName]
or a user defined field [custom_name]

TIA,
Joel
 
The simple text box control native to Outlook forms does not have any Mask
property.

No event fires when the user moves from one control to another. However, if
the user was setting the value of a control bound to an Outlook property,
the PropertyChange or CustomPropertyChange event fires, because exiting a
text box control writes the user's input to that property.

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



Joel said:
Thanks Sue:

What i really wanted to do format data using a Mask. I posted a question
about Masks for user defined fields and no one responded. I figured I
would
create a script to format the data and have using a command button to
trigger
the event Click.

One last question. As far as the Script events, is there an event that
runs
after the control has lost focus?

Thanks again,

Joel

Sue Mosher said:
See http://www.outlookcode.com/d/propsyntax.htm for a primer on Outlook
property syntax.


Joel said:
Trying to write script to manupulate fields on custom contact form.

Sub CommandButton1 Click()
x=value
[customfield_name]= x
End Sub

It doesn't work. Any help on code to change value of:
default field like [FirstName]
or a user defined field [custom_name]

TIA,
Joel
 
Back
Top