Open a document or any file from access

G

Guest

Hi,
The filename is in a field,
When double click on the filename field, I want to open the file/document
How can I do it?

This is my code:

Private Sub fileattach_Click()
Dim filename As String
filename = Me.fileattach
filename = "z:\files\" & filename

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top