|
-
Apr 19th, 2004, 10:45 AM
#1
Thread Starter
Frenzied Member
Showing and disposing forms [Resolved]
I'm starting an app from sub main. In the module there's a switchboard type form declared as public, that's is run in sub main. The switchboard the lets the user select record editing, which works as follows:
frmEntry is declared and shown from the click event of a button on the switchboard form. Here the user enters some parameters to select a record. When the user clicks ok, that event declares and shows the actual form (frmEdit) with the record data to be edited, and hides the Entry form.
But, when the user's done editing the record, there's no way to get back to frmEntry (from code, anyway) from frmEdit, because frmEntry's declared outside the scope of frmEntry.
Ok, so just declare all forms in the module, right? The problem there is that if the user closes frmEntry, then tries to reopen it, it's already been disposed of, and an error's thrown.
I could have a public sub in the module to declare forms, but I want to save the selected db (which is selected in a combobox), and the month, which is in a textbox.
Is there a way around this? Thanks.
Last edited by salvelinus; Apr 20th, 2004 at 01:21 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|