When I run my program I keep getting this message:
Run-time error 401
Can't show non modal form when modal form is displayed.
Does anybody know what this error means and how do I fix this error?
Thankyou and God Bless
--
Message posted via http://www.vbmonster.com
It means precisely what it says.
What part is unclear to you?
Bob
--
--
Message posted via VBMonster.com
http://www.vbmonster.com/Uwe/Forums.aspx/vbasic-controls/200804/1
>How to get rid of this error.
Don't show a non modal form while a modal form is being
shown.
Do you understand what modal and non modal is?
--
Jan Hyde
This usually occurs when you open/display a modal form using a command such
as:
SortScreen.Show vbModal
And then, try to show another form, non-modal from that form, such as:
NewScreen.Show
A modal form is one that must be closed before program execution can
continue with the code following the Show command. If a modal form is open
(by using vbModal), and you want to open another form, it too must be Modal.
Otherwise, you get the error you are getting. Just add the vbModal to the
second Show command.
--
Regards,
Rick Raisley