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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open file dialog in msaccess vba and pass value to a field

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i need the code to open a filedialog and pass the selected file path to a field on a form
 
Thanks for the site reference! I love how it works.
I would like to know if there is an extension to prompt the user to pick a particular worksheet tab, if it's an Excel file?
Would it be too much to ask somebody if they've ever gone one step further and imported said worksheet into an Access table?
In Access, I have the following working, in general, but can't figure out how to specify a particular worksheet:
DoCmd.TransferSpreadsheet acImport, 8, stImportTable, _
ExcelFileName, True

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top