no-standart forms

W

www

sorry for my english, i have a problem, i use custom forms "Customers" which
has some fields from contact form and some fields which was declared by me
(skonto, provisio, etc), this informations are save in folder
Customers(subfolder Contact Folders), I try read data from this not-standard
fields but i can't, could you help me?
vladi from poland

For Each komorka In myCustomers.Items
If komorka.LastName = KundeFuerAb Then
With myitem
.UserProperties("ArtNr").Value = komorka.LastName
.UserProperties("ArtNr2").Value = komorka.FirstName
.UserProperites("ArtNr1").Value =
komorka.item.userproperites("createofferasemail")
<- here is fault

End With
End If
Next komorka
 
W

www

Thank you, unfortulately:
run-time error 438
object doesn't support this property or method
other idea maybe? I have not ideas
vladi


Uzytkownik "Sue Mosher [MVP]" <[email protected]> napisal w wiadomosci
It's komorka.UserProperties, not komorka.Item.userproperites. See
http://www.slipstick.com/dev/propsyntax.htm
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP]

Please be specific. Show the statement you receiving that error on.

Also remember that contacts folders can also contain distribution lists. You must check the Class property to find out what kind of item you're working with before using any properties specific to a ContactItem.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
W

www

The problem is in the same point then before. Could you tell where or how
can I check the Class property in order to find out what kind of item are.
Maybe some of listning with property code?
For Each komorka In myCustomers.Items (run-time error 438
object doesn't support this property or method)
So. i think that the problem is with property class, but i try from
slipstick.com and msdn.microsoft.com to solve this problem without resoult,
maybe i make stupid-basic-fault?
vladi


Uzytkownik "Sue Mosher [MVP]" <[email protected]> napisal w wiadomosci
Please be specific. Show the statement you receiving that error on.

Also remember that contacts folders can also contain distribution lists. You
must check the Class property to find out what kind of item you're working
with before using any properties specific to a ContactItem.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP]

There's isn't much to it:

If komorka.Class = olContact Then
' do ContactItem stuff with it
End IF

You still have a typo here: komorka.userproperites("createofferasemail"). See my earlier message.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

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