All file types in browse to file path?

C

carriey

I know there are a ton of posts on how to browse to a file path and save it
as a hyperlink and most of them refer to the API on the Access Web.

I have pasted that code into a new module and understand that now I need to
write some more code. This is quite a bit over my head but everytime I see a
post, it seem to refer to only one type of file:

strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)", "*.XLS") or
strFilter = ahtAddFilterItem(strFilter, "Word Files (*.DOC)", "*.DOC") or

I need to be able to save the attachments of any file type (.XLS, .DOC,
..PDF, .TXT maybe even .JPG). I am probably misunderstanding how this works
but is there a way to let the user select any file they want regardless of
the type?

Thanking you in advance
 
D

Dirk Goldgar

carriey said:
I know there are a ton of posts on how to browse to a file path and save it
as a hyperlink and most of them refer to the API on the Access Web.

I have pasted that code into a new module and understand that now I need
to
write some more code. This is quite a bit over my head but everytime I
see a
post, it seem to refer to only one type of file:

strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)", "*.XLS") or
strFilter = ahtAddFilterItem(strFilter, "Word Files (*.DOC)", "*.DOC") or

I need to be able to save the attachments of any file type (.XLS, .DOC,
.PDF, .TXT maybe even .JPG). I am probably misunderstanding how this
works
but is there a way to let the user select any file they want regardless of
the type?

Thanking you in advance


strFilter = ahtAddFilterItem(strFilter, "All Files (*.*)", "*.*")
 

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

Similar Threads

Browse function 2
Attach File 4
Folder access (Access 2003) 1
Browse File and Import Into Access 4
attachment 9
Stripping file name from Path... 2
Tweek code to give just the path 2
Copying a File using API 1

Top