Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / July 2004

Tip: Looking for answers? Try searching our database.

Full Name - Check Name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
M Long - 28 Jul 2004 23:23 GMT
I am new to the Outlook Custom Forms world and had a question.  I am making a contact form.  I have changed the File As field to be the account name.  Each account can have 10 contacts (docs, ER people, technicians, etc).  

I am trying to mimic the Check Name Dialog box and tie it to a user defined text field, but have not been able to get it to work for the life of me.  Is this even possible, and if so, does anyone have suggestions on the best way to accomplish this task?

Thanks in advance!

Mike
Sue Mosher [MVP-Outlook] - 28 Jul 2004 23:54 GMT
Exactly what do you want to happen?

Signature

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

I am new to the Outlook Custom Forms world and had a question.  I am making
a contact form.  I have changed the File As field to be the account name.
Each account can have 10 contacts (docs, ER people, technicians, etc).

I am trying to mimic the Check Name Dialog box and tie it to a user defined
text field, but have not been able to get it to work for the life of me.  Is
this even possible, and if so, does anyone have suggestions on the best way
to accomplish this task?

Thanks in advance!

Mike
M Long - 29 Jul 2004 00:08 GMT
Sue,

Thanks for the reply!

I have a page in my form that is labeled "Staff".  On this page there are 10
text fields and command buttons laid out.  What I am trying to do is code a
command button and bind it to each text field, with the same functionality
as the Full Name: field with the Check Name Dialog Window on the default
Contact form.  So basically the user could click the command button, fill in
the Title, first name, middle initial, last name and then click OK and have
it populate the bound text field.

Thanks!

Mike

Signature

MICHAEL LONG

> Exactly what do you want to happen?
>
[quoted text clipped - 10 lines]
>
> Mike
Sue Mosher [MVP-Outlook] - 29 Jul 2004 00:38 GMT
It sounds like the code for each command button needs to concatenate the
data values from the unbound controls in order to set the Outlook property
associated with that command button. A good way to approach this would be
with a single procedure that takes as its one argument the name of the
property that you want to set, something like:

Sub CommandButton1_Click()
   Call SetProp("prop1")
End Sub

Sub SetProp(PropName)
   strText = ' some code to create the concatenated string
   Item.UserProperties(PropName) = strText
End Sub

As for the basics of unbound control syntax, you'll find those at
http://www.outlookcode.com/d/propsyntax.htm#unbound

Signature

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

> Sue,
>
[quoted text clipped - 30 lines]
> >
> > Mike
M Long - 29 Jul 2004 16:03 GMT
Thank you!

Signature

MICHAEL LONG

> It sounds like the code for each command button needs to concatenate the
> data values from the unbound controls in order to set the Outlook property
[quoted text clipped - 53 lines]
> > >
> > > Mike
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.