Hi James,
Thanks for replying to my post - the code that returns an empty string doesn't involve a loop through the layers in the TOC, I'm using this property to get the full file path to my featureclass by simply casting the featureclass as an IDataset and then getting the Workspace.PathName property from this, ie.
Dim pDataset as IDataset
Set pDataset = pFeatureClass
Dim pWorkspace as IWorkspace
Set pWorkspace = pDataset.Workspace 'This does not get set to Nothing
Dim sPath as String
sPath = pWorkspace.PathName 'This returns an empty string even though pWorkspace is set
The feature class is a personal geodatabase featureclass, I'm not dealing with SDE featureclasses so unfortunately your second post doesn't apply, but thanks for looking into this.
James