oItem.FileAs

J

jrose

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

Sue Mosher [MVP-Outlook]

Check the Class property of the object (oItem) that is producing the error.
Chances are that it is not a ContactItem object.
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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