oItem.FileAs

  • Thread starter Thread starter jrose
  • Start date Start date
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.
 
Check the Class property of the object (oItem) that is producing the error.
Chances are that it is not a ContactItem object.
 
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.
 
Back
Top