"Peppie" <rpeppel@zonnet.nlwrote in message
<4502b342$0$15332$bf4948fe@news.tele2.nl>:
Quote:
Hi all,
>
I created a button in an Access form that opens MS Word. Now I want
this button also to open a specific file. How do I code this?
>
Would it also be possible to let the user select the type of
template from a list? It would be perfect if this list does not
show the actual template files, but a short desribtion of the type
of file i.e.'report', 'proposal' etc.
>
Your help is much apprciated, Peppie (newbie)
>
----------------------------------------------
Posted with NewsLeecher v2.0 Beta 5
* Binary Usenet Leeching Made Easy
*
http://www.newsleecher.com/?usenet
----------------------------------------------
Depending on how/what you wish to to, there are several possibilities.
One is this wrapper for the ShellExecute API
http://www.mvps.org/access/api/api0018.htm
If you create a table containing your descriptions, and the file names,
you could use a combo or list on the form to allow the users to select
based on the description, but then use the file name when opening
Word.
--
Roy-Vidar