"Simon" <Sv********@Versatel.nlwrote in message
<46***********************@news.tele2.nl>:
Dear reader,
I have a Snap Shot file located in a folder.
Now I like to view the Snap Shot file.
First I created a string with the full pathname and Snap Shot file.
The Docmd.OpenView strSnpFile Shows me the
message:
Can't find the object" will path and file name are correct.
Is there any one who can tell me the code in VBA to view the snap
shot file.
Thanks for any help.
Kind regards,
Simon
I think the snapshotviewer is the program you need for this, as I don't
think Access will open those files.
Try either the follohyperlink method
Application.Followhyperlink strSnpFile
or check out this wrapper for the ShelleExecute API
http://www.mvps.org/access/api/api0018.htm
If you want to open it at the time you create it, you could pass True
as the AutoStart parameter.
DoCmd.OutputTo acOutputReport, "myRpt", acFormatSNP, "c:\name.snp",
true
--
Roy-Vidar