R RogerB Registered User. Local time Today, 14:07 Joined May 25, 2000 Messages 10 Jun 26, 2002 #1 I need to include an API library file that will allow me to connect to a non Access database. In C this would be done with "#include 'file name'". How is it done in a VBA code module? Thanks
I need to include an API library file that will allow me to connect to a non Access database. In C this would be done with "#include 'file name'". How is it done in a VBA code module? Thanks
A Alexandre Registered User. Local time Today, 20:07 Joined Feb 22, 2001 Messages 794 Jun 26, 2002 #2 Use a Declare statement Ex: Code: Private Declare Function SHFileOperation Lib "shell32.dll" Alias "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As Long See an example code snippet: API - Delete a file
Use a Declare statement Ex: Code: Private Declare Function SHFileOperation Lib "shell32.dll" Alias "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As Long See an example code snippet: API - Delete a file