Pause event untill certain condition is met

panchitocarioca

Registered User.
Local time
Yesterday, 20:08
Joined
Aug 11, 2008
Messages
11
Hi,

I have a question :confused: and i am hoping you guys could help me with it.

During an event procedure, I would like to pause that event untill a certain condition has been met. More specifically, after the beforeupdate event has been started, it opens another form. In that form, the user should answer a number of questions. Only after the questions on that form have been answered, the beforeupdate event should continue.

Does anyone have a clue how i should arrange the above?

Many thanks in advance.

Best regards,
 
Hi,

I have a question :confused: and i am hoping you guys could help me with it.

During an event procedure, I would like to pause that event untill a certain condition has been met. More specifically, after the beforeupdate event has been started, it opens another form. In that form, the user should answer a number of questions. Only after the questions on that form have been answered, the beforeupdate event should continue.

Does anyone have a clue how i should arrange the above?

Many thanks in advance.

Best regards,

Open the question form in dialog mode.
 
Amplification of what Bob said.

Forms in dialog mode "usurp" your thread until they close again or perform a DoEvents.
 
have a boolean flag in a module

public waitflag as boolean


then somewhere else you can say

waitflag = true

while waitflag
doevents
wend

'this will therefore wait until some other condition (hence the doevents) sets waitflag back to false
 

Users who are viewing this thread

Back
Top Bottom