Full Name - Check Name

M

M Long

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
 
S

Sue Mosher [MVP-Outlook]

Exactly what do you want to happen?

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



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

M Long

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
 
S

Sue Mosher [MVP-Outlook]

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

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

M Long

Thank you!

--
MICHAEL LONG
Sue Mosher said:
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

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



are code fill
 

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

Top