Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extra-form communication problem

Status
Not open for further replies.

WoundEdGoat

Programmer
May 10, 2002
39
CA
Don't mean to be a pest, but I need help again.

Okay, I have this form that I want to call on this other form, get a small bit of information, and execute the result of the information.

What I want to know is how to stop the execution of the sub that I called the second form from and wait until I get the infor from the other form before executing the rest of the sub... I hope you can understand all that.
 
Start a new project and add a command button to the form. Then add this code to the form


Private Sub Command1_Click()
Form2.Show vbModal
'vbModal Halts the execution of code here
MsgBox "Back to Form 1"
End Sub

Now add another form to the project and add this code to the second form

Private Sub Form_Load()
MsgBox "Form 2"
End Sub


Hope this helps [spin] If you choose to battle wits with the witless be prepared to lose.
[machinegun][ducky]
 
Ah yes... I seem to have forgotten about the vbmodal command... Thatnk you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top