I would like to know if there are developer tools out there that can do the
following:
- Appending muliple as in many PDF docs to a specific record.
- Or maybe I create a folder and the AccessDB reads the contents of the
folder showing the files related to the specific record.
Kinda like a achive file manger of related files to a database record.
Note: Eventually this access database will be pushed to SQL server if that
helps.
Can anybody help me with this?
Thank you in advance.
Michael Kintner
You can simply open a document by using the ShellExecute api on the stored
path to the document:
http://www.mvps.org/access/api/api0018.htm
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
"Michael Kintner" <nos...@nospam.com> wrote in message
news:135oalo...@corp.supernews.com...
Is it any _better_ than using ShellExecute? I don't know. Anybody have
information one way or the other?
Larry Linson
Microsoft Access MVP
"Arvin Meyer [MVP]" <a...@m.com> wrote in message
news:%23TY%23N8foH...@TK2MSFTNGP04.phx.gbl...
I'm against storing the "attachment" in the database. It bloats the
database, which depending on your application and the size of the
attachments, could quickly reach the 2GB max for Access. Personally, I
prefer to store pointers to the file.
In some applications, I have copied the files to a central repository and
renamed them, then stored the original name and the new name in my database.
The user can browse the application select an item, and click an Open button
to open the file.
By copying the file to a hidden folder on the network, I can prevent the
user from modifying it. When they click on the Open button, I can copy the
file from the repository to their local machine (usually C:\Temp or
C:\Windows\Temp) and open it using the docmd.followhyperlink method.
As far as code that will allow you to do this, take a look at the
BrowseFolder (http://www.mvps.org/access/api/api0002.htm) and Open/Save
dialog (http://www.mvps.org/access/api/api0001.htm) APIs on the Access Web.
You can wrap these calls in a little code to accomplish the rest of your task.
HTH
Dale
--
Email address is not valid.
Please reply to newsgroup only.
> You can also open a document with the Application.FollowHyperlink
> statement. It's worked for documents on which I've used it whose
> file types were registered.
>
> Is it any _better_ than using ShellExecute? I don't know. Anybody
> have information one way or the other?
I've had circumstances where FollowHyperlink didn't work for some
unexplained reason where ShellExecute did. Also, I believe the error
messages are different with ShellExecute -- I found them easier to
work with than FollowHyperlink, which was often completely silent.
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Private Sub cmdMyButton_Click()
Me.cmdMyButton.HyperlinkAddress = "C:\Data\" & Me.txtFileName
End Sub
where C:\Data\ is the folder and txtFileName completes the fully qualified
path.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
"Larry Linson" <bou...@localhost.not> wrote in message
news:u%Y6i.3724$D31.1612@trnddc01...
Larry Linson
Microsoft Access MVP
"Arvin Meyer [MVP]" <a...@m.com> wrote in message
news:OKeSDVko...@TK2MSFTNGP04.phx.gbl...