After many happy months of use, my custom form has suddenly decided
that "object does not support this property or method: oItem.FileAs".
Since this is a business app, we are getting help desk tickets. Any
ideas why this would suddenly quit working? the section of code goes
like this:
Public Function ReadSettings()
Dim oCurrentFolder
Set oCurrentFolder = Application.ActiveExplorer.CurrentFolder
Dim oSettingsFolder
Set oSettingsFolder = oCurrentFolder.Folders(sSettingsFolder)
Dim oItem
For Each oItem In oSettingsFolder.Items
If UCASE(oItem.FileAs) = UCASE(sSettingsField) Then
ReadSettings = oItem.Body
End If
Next
End Function
Thanks in advance for your help.
Sue Mosher [MVP-Outlook] - 25 May 2004 15:06 GMT
Check the Class property of the object (oItem) that is producing the error.
Chances are that it is not a ContactItem object.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> After many happy months of use, my custom form has suddenly decided
> that "object does not support this property or method: oItem.FileAs".
[quoted text clipped - 18 lines]
>
> Thanks in advance for your help.
Ken Slovak - [MVP - Outlook] - 25 May 2004 15:52 GMT
Is this being run while in a contacts folder as the current folder? Is it
possible that a DL is in that folder? Only ContactItem's support the FileAs
property.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> After many happy months of use, my custom form has suddenly decided
> that "object does not support this property or method: oItem.FileAs".
[quoted text clipped - 18 lines]
>
> Thanks in advance for your help.