Access 2003 common file open dialog

message from Matt Gauch on 24 May 2004
For many years I have been using the function declaration below (from
Getz/Litwin/et al's Access Developer's Handbook) to use the Windows common
file open dialog box to get a file name. However, I just ported my code
utilities library (which contains this code for the common file dialogs) to
Access 2003 for the first time, and now it won't compile under Access 2003!
Can someone tell me how this declaration needs to change to work with Access
2003?

Declare Function adh_accOfficeGetFileName Lib "msaccess.exe" _ Alias "#56"
(gfni As adh_accOfficeGetFileNameInfo, ByVal fOpen As Integer) As Long

TIA,

Matt Gauch
sqlgeek@earthlink.net
 
Douglas J. Steele replied to Matt Gauch on 24 May 2004
Look at http://www.mvps.org/access/api/api0001.htm

You must have just come from Access 95, as I believe that entry point
disappeared in Access 97.
 

Archived message: Access 2003 common file open dialog (MS Access Error Message)