Hi Chris,
I think the problem is that this
changes the current directory *in the share \\HOBS* but this
looks in the current directory in the current drive (typically C:).
AFAIK you can't set the current drive to an unmapped network share, so
the options appear to be
1) map the share to the same drive letter in all computers (e.g. Q:) and
use
ChDir "Q:\HobsInsolDownloads"
ChDrive "Q"
strFile = Dir("insolgroup*.*)
2) use the UNC path throughout (The VBA Dir() function appears to accept
UNC, though I don't know whether this is 100% the case.)
strFile = Dir("\\HOBS\HobsInsolDownloads\insolgroup*.*)
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
|