Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run A Function of Sub on MS Access
#7
the reason your getting the cannot find the procedure 'EmployeeFolderPath().'. error  message is because

Your  calling the function incorrectly 

change code to and will work
Code:
Copy      Help
sPath = acApp.Run("EmployeeFolderPath")
and it will work
full code below
Code:
Copy      Help
;/exe 1
typelib Access {4AFFC9A0-5F99-101B-AF4E-00AA003F0F07} 9.0
str sPath
Access.Application acApp
acApp._getactive
;acApp._getfile("C:\Users\kevin\Documents\Database1.accdb")
sPath = acApp.Run("EmployeeFolderPath")
out sPath
;BEGIN PROJECT
;;flags  6
;END PROJECT
 
Tip

Q. How to post QM code to the forum?

A. In QM, to copy all or selected text, use menu Edit -> Other Formats -> Copy for QM Forum. It copies correct and colored code to the clipboard. Then simply paste in the forum. Don't use the Code button.
read more here
http://www.quickmacros.com/forum/showthread.php?tid=786


Messages In This Thread
Run A Function of Sub on MS Access - by Firas - 07-24-2018, 09:18 PM
RE: Run A Function of Sub on MS Access - by Kevin - 07-24-2018, 11:05 PM
RE: Run A Function of Sub on MS Access - by Firas - 07-28-2018, 10:05 AM
RE: Run A Function of Sub on MS Access - by Firas - 07-30-2018, 07:55 AM
RE: Run A Function of Sub on MS Access - by Kevin - 07-30-2018, 01:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)