Modal/NonModal forms
- From: "Bill Hileman" <discgolfdad@xxxxxxxxxxx>
- Date: Sun, 20 Jul 2008 17:06:24 -0400
According to the ancient tomes of VB 6 help, once a form has been shown as
one type (modal or nonmodal) it's type cannot be changed. I can certainly
understand why, but it would also certainly be nice if it could.
My situation is the ability to add table entries on-the-fly. For example,
suppose you are keying-in an invoice (a/r or a/p) and you need to add a new
customer or vendor. It's easy enough to call the maintenance form for that
corresponding table from the invoice maintenance form, and call it as modal,
since you want to add the new customer or vendor to the lookup list on the
invoice form when the user is done. However, suppose that the table entry
being added might also need sub-table information added. Like a G/L
account, for example. You'd need to call the G/L account maintenance form
in a modal state as well, so that likewise, when the user had added the new
G/L account, it will include it in the list on the customer or vendor form.
Currently this seems to be impossible, and limits on-the-fly adding of
records to table to simple data tables. Running the code in non-modal mode
would not be able to accomplish the needed step of including the new entries
in their lists.
Is there some kind of simple work-around that I've missed?
I realize that even if you were able to change the modal status of a form
via the API or something, logically, it would then continue to run the code
in the calling form before you could even open another modal form, so
perhaps this is the reason it's just not do-able?
Bill "Frisbee" Hileman
.
- Follow-Ups:
- Re: Modal/NonModal forms
- From: Larry Serflaten
- Re: Modal/NonModal forms
- From: MikeD
- Re: Modal/NonModal forms
- From: Steve Gerrard
- Re: Modal/NonModal forms
- From: Peter T
- Re: Modal/NonModal forms
- Prev by Date: Re: save a word document to a byte array
- Next by Date: Re: Modal/NonModal forms
- Previous by thread: ListView: how to detect if the item is selected with the first mouse click?
- Next by thread: Re: Modal/NonModal forms
- Index(es):
Relevant Pages
|
|