Act supports VB script because it is shown in the examples they provide. I am trying to extend the script by calling an access function to see if the entry of an order has been completed in some bespoke software. Which is when the IsFinished function will return true. I want the program to loop until that event is true.
It is just like when you use wscript.exe internal methods is not going to be allowed in internet explorer. Hence, you cannot use it as such, period.
Having said, when you use access application run method on the command which return a value, it is doing so synchronously. Hence, by itself, the line
[tt] accessapp.run("IsFinished")[/tt]
will block the progress of the script to next line. Besides, what do you want if it return false, it would run forever conceptually.
Hence, I would suggest you simply do this and test it.
[tt]
dim bret
bret=accessapp.run("IsFinished")
if bret then
'do something as IsFinished return true
else
'do something when IsFinished return false for some reason.
end if
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.