Here is what I do: I print a Word Doc to pdf and save it in "My Documents"
like -- Letter1.pdf, Letter2.pdf etc.
From my db, I want to open my form and (1) see that I have 2 letters, (2)
then be able to double click, say Letter2.pdf and view same.
Okay, but how does Access know that Letter1.pdf and Letter2.pdf "belong" to the record you're currently viewing? Or does
that matter? If it does, then somehow you'd need to associate the two PDF files with the correct record in Access.
In other wods, when your fire up your form, and you're viewing the first record, do you want ALL .pdf files in the My
Documents directory to be available, or do you want to see a list of ONLY those files that are associated with the first
record ... then when you move to the second record, you want to see those files associated with the second record, and
so on and so on ... if that's the case, then you'll need a table to store this relationship.
Also, I am not sure what to do with - Application.FollowHyperLink
"C:\Documents \My Documents". When I open a command button, it asks if I want
to run an application etc., what do I choose here? Or in the alternative,
where do I pasete the followhyperlink code to?
Take a look at the post by Peter ... I much prefer using ShellExecute to do these types of things, and Peter has
provided a sample for you to review ... perhaps this would be simpler.
Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com