I have a Access 2010 database where I want one of the fields on a form to launch the File Dialog box when the user clicks in the field. This field will contain a file path to one specific file. The File Dialog box will not open the file but rather it should only capture the path. Currently I have the user entering this directly, but a File Dialog box would make life easier for the user, who will be running Access 2007. To clarify, on some of the reports I produce from the same database, the user has the option to click on macro buttons for reference documents, and this file will be one of the targets.
I found several similar pursuits on this forum but none as simple as what I wanted. I also pulled some sample code from the MS Access Help page, but when I tried to run it, it bombed out at the following code:
Dim fd As FileDialog returned an error of "User-defined type not Defined"
Comments are greatly appreciated.
I found several similar pursuits on this forum but none as simple as what I wanted. I also pulled some sample code from the MS Access Help page, but when I tried to run it, it bombed out at the following code:
Dim fd As FileDialog returned an error of "User-defined type not Defined"
Comments are greatly appreciated.