Yes, I enclosed the filename in quotes. The message comes up in Excel and it
reads:
The file could not be accessed. Try one of the following:
Make sure the specified folder exists.
Make sure the folder that contains the file is not read-only.
Make sure the filename does not contain any of the following
characters: < > ? [ ] : | or *
Make sure the file/pathname doesn't contain more than 218 characters.
Messages 1, 2 and 4 don't apply as 1)the specified folder does exist, 2) the
file is not read only, and 3) the path/filename isn't more than 218
characters. So I'm guessing the colon is what's throwing it off; I'm
thinking maybe there's some obscure setting in Excel that's causing this.
(I'm using Access and Excel 2003 versions, if that helps).
"Steve Schapel" wrote:
> S. H. Drew
>
> I do not understand the problem about the colon. I am sure it doesn't
> refer to the colon in the drive letter name as in h: so it must be some
> other problem. What is the rest of the path/file name? You did enclose
> in ""s like I showed you?
>
> --
> Steve Schapel, Microsoft Access MVP
>
> S. H. Drew wrote:
> > Hi Steve! Thanks for responsing. I couldn't get the RunApp method to work;
> > it opened Excel, but then I got a message which among other things said the
> > filename cannot contain a colon (
as one of its characters. Since my
> > filename contains a colon (h:\marketing\sales planning...), I'm guessing
> > that's why it won't open the file. BUT, the hyperlink idea worked great! I
> > just formatted the hyperlink to look like a button, so I got what I needed.
> > Thanks so much for your help! (p.s. if you've got any ideas on how to get
> > around the colon issue, I'm all ears!)
> >
>