b001
asked on
Menu and Forms
Hi Experts
I have a form menu on clicking Bill'sSpecial
I would like to run LoginForm1 and return Passx variable
Check Passx variable if YES then run Bill_sp Form
With the follwong code
It runs LoginForm1 but it does not wait for any input there it continues
How can I stop it at LoginForm1 then execute next line
Private Sub BillsSpecialToolStripMenuI tem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BillsSpecialToolStripMenuI tem.Click
passx = ""
LoginForm1.Show()
If passx = "YES" Then
Bill_sp.Show()
End If
MsgBox(passx)
End Sub
Thanks
I have a form menu on clicking Bill'sSpecial
I would like to run LoginForm1 and return Passx variable
Check Passx variable if YES then run Bill_sp Form
With the follwong code
It runs LoginForm1 but it does not wait for any input there it continues
How can I stop it at LoginForm1 then execute next line
Private Sub BillsSpecialToolStripMenuI
passx = ""
LoginForm1.Show()
If passx = "YES" Then
Bill_sp.Show()
End If
MsgBox(passx)
End Sub
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.