|
-
Sep 1st, 2000, 05:29 AM
#1
Thread Starter
Addicted Member
Hi,
Best way to explain this!
I have 3 Forms, frmMain,frmStatus and frmCheckedOut.
After pressing a button on frmMain, frmStatus is shown (vbModal) and a series of code(in a module) is executed. If this code finds that files are checked out then frmCheckedOut is shown (on top of frmStatus, vbModal). This form asks if you want to proceed. Now this is where the problem lies....
If I click yes then instead of carrying on in the next line of code in the module after the form was called, it starts the whole sub again thus resulting in an endless loop of frmCheckedOut popping up. HOWEVER, if I put a breakpoint in at the part where frmCheckedOut is called and step through the code, then once frmCheckedOut has unloaded, the code continues with the NEXT line of code in the module.(which is what I want, only without having a breakpoint in!!!).
I thought maybe I needed a DoEvents somewhere but have tried this with no success .
Has anybody got any suggestions??
Any help will be appreciated
Shaun
Web/Application Developer
VB6 Ent (SP5), Win 2000,SQL Server 2000
-
Sep 1st, 2000, 08:28 AM
#2
Fanatic Member
I assume you are calling it like this.
frmwhatever.show 1
Its tough to tell whats happening without seeing the code.
are you sure the sub is starting over or is the sub being call from somewhere else again and again. Like from form_activate or some got_focus?
[Edited by kurtsimons on 09-01-2000 at 10:38 AM]
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Sep 1st, 2000, 08:37 AM
#3
Thread Starter
Addicted Member
Web/Application Developer
VB6 Ent (SP5), Win 2000,SQL Server 2000
-
Sep 1st, 2000, 09:36 AM
#4
Fanatic Member
Glad to help... thought I was shooting into the dark!
Kurt Simons
[I know I'm a hack but my clients don't!]
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
|