Hi,
My application is giving error of runtime error 5 whenever one of my modal
form unload. Debugging it in the IDE didn't show the error, it only appear
when I compile my application into a executable file.
Actually, I had 3 modal form calling each other with the second
form getting some return variable from the third form as show below.
Adding some code show that the form 2 unload didn't give any error at all.
I am loss, please advise
Sub Main()
Form1.show vbModal
End Sub
In form 1
=========
Private lStr as String
Form2.show vbModal <=== this part will give the error runtime '5'
with Form2
lStr = .Key
end with
In form 2
=========
Public Key as String
Key = "Testing"
'do some processing
' and will exit Form2
'by another exit button'
Best Regards
Virusim