Link to home
Start Free TrialLog in
Avatar of zdpl0a
zdpl0a

asked on

Controlling Processes

Hello Experts:

I need help determining how to handle this process.  I have a report, which displays information concerning transactions on a deposit slip.  After running the report, I run a seperate routine, which changes the status of each record to indicate that that transaction is closed.  This process works just fine.

However, it appears that the status changing occurs first, so when the report is displayed, it returns a blank report.  I've put the processes in a module, and call the module from my application.  Here is the code:

        Dim objDeposits     As clsStatements
       
        Set objDeposits = New clsStatements
        DoEvents
        objDeposits.PrintDepositDetails lvBatches
        objDeposits.ChangeDepositStatus
        Set objDeposits = Nothing


PrintDepositDetails is the module which displays the report and ChangeDepositStatus is the module which changes the status of each transaction.  So, my question is, is there a way to determine when a process is completed before starting the next process?
ASKER CERTIFIED SOLUTION
Avatar of Da_Weasel
Da_Weasel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zdpl0a
zdpl0a

ASKER

Thanks da weasel .. works like a champ ..
There are better ways of doing this with events and such, but this is the easiest way that works in most situations.