gooseriver
IS-IT--Management
I am checking the status of a scheduled report. I need to use a loop in which I check the status of the scheduled job when the "status" is = 1 then exit the loop...
I tried this and it did not work it stays in the loop..
Dim infoObjects
Set infoObjects = IStore.Query("Select Top 1* From CI_INFOOBJECTS Where SI_NAME='Universe Report'")
Dim report
Set report = infoObjects.Item(1)
do until status = 1
Dim infoObjects
Set infoObjects = IStore.Query("Select Top 1* From CI_INFOOBJECTS Where SI_NAME='Universe Report'")
loop
I tried this and it did not work it stays in the loop..
Dim infoObjects
Set infoObjects = IStore.Query("Select Top 1* From CI_INFOOBJECTS Where SI_NAME='Universe Report'")
Dim report
Set report = infoObjects.Item(1)
do until status = 1
Dim infoObjects
Set infoObjects = IStore.Query("Select Top 1* From CI_INFOOBJECTS Where SI_NAME='Universe Report'")
loop