I'm sorry about that, i think i rushed the question, so i'll try and explain it in more detail. I'm doing a monopoly game, and at the moment when the user hits a button roll it will activate a series of sub programs that will go through all the steps for playing monopoly. The problem i can see will occur when events such as landing on property, where i have it programmed to open a form which would deal with the purchasing of property aspect. There is however coding after the form that realies directly on the results of these forms(not a direct result, but how they change my array of records). What I need is a way of stopping the main form from executing the later commands until the new form has been closed by the user.
This is an example I've taken from my project
If Player(Turn).Jailed > 0 Then frmJail.Show
Call Dice(Dice1, Dice2)
If Player(Turn).Jailed > 0 Then
If Dice1 = Dice2 Then Player(Turn).Jailed = 0
Else
If Dice1 = Dice2 Then
If DoubleCount < 2 Then
Reroll = True
DoubleCount = DoubleCount + 1
Else
DoubleCount = 0
Jail
End If
Else
DoubleCount = 0
End If
End If
Sorry If I showed u too much and confused you, but here i need the user to interact with the Jail form and make a decision before the coding continues, otherwise it doesn't work. Incase it wasn't obvious frmJail would give the user a chance to change the value of Player(Turn).Jailed
I hope that makes it clearier what I'm trying to do. As I was looking for a way to do this i remembered the msgbox function does a similiar process, where the program stops until you've finished interacting with it.