Pause event untill certain condition is met (1 Viewer)

panchitocarioca

Registered User.
Local time
Today, 04:17
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,
 

boblarson

Smeghead
Local time
Today, 04:17
Joined
Jan 12, 2001
Messages
32,059
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.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 06:17
Joined
Feb 28, 2001
Messages
27,522
Amplification of what Bob said.

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

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 12:17
Joined
Sep 12, 2006
Messages
15,756
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

Top Bottom