PC Review


Reply
Thread Tools Rate Thread

Command Button Script

 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      14th Jan 2005
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
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      14th Jan 2005
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
http://www.outlookcode.com/jumpstart.aspx


"Joel" <(E-Mail Removed)> wrote in message
news:81B4F58C-F737-45E0-94B5-(E-Mail Removed)...
> 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



 
Reply With Quote
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      15th Jan 2005
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 [MVP-Outlook]" wrote:

> 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
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Joel" <(E-Mail Removed)> wrote in message
> news:81B4F58C-F737-45E0-94B5-(E-Mail Removed)...
> > 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

>
>
>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      15th Jan 2005
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
http://www.outlookcode.com/jumpstart.aspx


"Joel" <(E-Mail Removed)> wrote in message
news:5DB5CADA-474E-4689-80D5-(E-Mail Removed)...
> 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 [MVP-Outlook]" wrote:
>
>> See http://www.outlookcode.com/d/propsyntax.htm for a primer on Outlook
>> property syntax.
>>
>>
>> "Joel" <(E-Mail Removed)> wrote in message
>> news:81B4F58C-F737-45E0-94B5-(E-Mail Removed)...
>> > 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

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with a VB script for a command button in Access 2003 Seanwind Microsoft Access VBA Modules 1 24th May 2008 05:43 PM
Command Button script charlotte49ers Microsoft Access VBA Modules 0 11th Dec 2007 04:16 PM
Visual Basic - Button to run command or vb script? mrmwalter@yahoo.co.uk Microsoft VB .NET 3 6th Dec 2007 11:07 AM
Re: Script needed to disable a web form command button Ben Dewey Microsoft ASP .NET 0 10th May 2004 09:12 PM
VB Script to Hide Command Button if Bitmap is True Ken Microsoft Excel Programming 2 30th Sep 2003 12:02 AM


Features
 

Advertising
 

Newsgroups
 


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