I created a small vbs script that runs some queries in a database.
Right now I have the script in Windows scheduler to run every hour.
What I was wondering is if I can place this code in an asp page that will run when the page loads.
This way it would run the queries after they update fields in the database through the asp page instead
of running every hour when it dosn’t need to.
Here is the code:
Dim objAccess
Dim strDBName
Set objAccess = WScript.CreateObject(“Access.Application”)
strDBName = “C:InetpubwwwrootRegionconfigConfiguration.mdb”
objAccess.OpenCurrentDatabase strDBName
objAccess.docmd.runMacro(“macUpdateID”)
Or is there a better way of doing this.
The files are on our intranet so security issues shouldn be problem.
I have limited asp knowledge but I’m a quick learner.
Thanks,
Scott