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
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