You have to specify the object property name, you can't use a variable for
that. You'd have to set up a set of if blocks or a case block and test the
value of your variable and then access the property by name depending on the
value of your variable.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Marvin Buzz" wrote in message
...
Thank you. I have found those fields and they contain what I need. If my
contact item is named cont then I would reference an item as
cont.HomeTelephoneNumber for example. If I have a variable that has a
value
of "HomeTelephoneNumber" how would I reference the field?
cont.variablename
does not work.