Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run A Function of Sub on MS Access
#1
Question 
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.

[Image: employee_Folder_Path.jpg]

So, when the program is on, I want to retrieve the employee folder path from the function "EmployeeFolderPath"

may be the code will look something like this.

Code:
Copy      Help
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")


Appreciate your kind help


Attached Files Image(s)
   


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: 4 Guest(s)