I designed a small program to use in HR using MS Access 2016.
I am trying to run a function, which I wrote in one of the program modules.
The said function return a string, which shows the folder path for active employee window.
So, when the program is on, I want to retrieve the employee folder path from the function "EmployeeFolderPath"
str sPath
Access.Application acApp
;;acApp = I should get the running instance of the program
;; the program path ""\\HR-PC\HR.accdb"
sPath = acApp.Run("EmployeeFolderPath")
maybe this topic will help more http://www.quickmacros.com/forum/showthr...oft+Access
sorry cannot help more was just trying to get you started in right direction
also search forum for Microsoft Access there are other topics that may help.
in code editor type acApp then . and you will see a list of functions you can do
Well, thank you very much Mr. Kevin. appreciate your help.
Actually, the code did not work. it keeps telling me that the process in not running, but the program is running as you can see from the attached image.
is it going to make any difference that I am running the .accde copy of the program.
as you can the from the image the calss name in OMain .
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