Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browing for a file

Status
Not open for further replies.

Iainkerr01

Technical User
Aug 8, 2007
12
GB
I am creating an Email system from within Access 2000. I=On the form, I wnat to create a "Browse" button to look for the file to be added as an attachment. Once the file has been found, I want to return the path and filename to a field on the form. Any ideas please?
 
There is API code for a function at
Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Thank you. That works very well. Only forther question I have is how to alter the initial directory that is opened.
 
There is a function on the page that allows the programmer to use an initial folder.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Put the folder path in the InitialDir parameter of ahtCommonFileOpenSave.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top