All file types in browse to file path?

  • Thread starter Thread starter carriey
  • Start date Start date
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
 
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 (*.*)", "*.*")
 
Back
Top