Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Control not coming back

Posted on 2004-08-02
8
Medium Priority
?
250 Views
Last Modified: 2010-05-02
here is a simplified version of my sub

private sub MySub()

   do something
 
   call another sub which in turn calls a variety of simple date conversions,etc.

   do something else  <-- NEVER COMES BACK TO THIS

end sub

BUT!!! the only problem is that it never comes back to 'do something else'
-  when i look at the call stack in the beginning MySub can be seen as the caller....but then at some point it is removed from the stack?!?!

thanks
0
Comment
Question by:tricks801
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 11

Accepted Solution

by:
SweatCoder earned 500 total points
ID: 11696829
have you used step over and step out in debug mode to see where it's branching to and why it's not coming back?
0
 

Author Comment

by:tricks801
ID: 11696929
yes...when it should come back, it doesnt.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 11697098
'yes...when it should come back, it doesnt.'

Does his happen on a particular line of code or is it in an infinite loop?

You will have to step into the called procedures to understand exactly where it goes wrong. You should use breakpoints or Run To Cursor to check when and if it exits from large loops.

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:tricks801
ID: 11698169
do something     // break point here
 
call another sub which in turn calls a variety of simple date conversions,etc.

do something else  <-- NEVER COMES BACK TO THIS // break point here

it is not in an infinite loop as I regain control of the form.
0
 

Assisted Solution

by:Milkus1
Milkus1 earned 500 total points
ID: 11700238
Can we get a little more info ie: the sub it is calling. Is it using any third party controls?
0
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 500 total points
ID: 11700799
You have repeated your question, but you still do not say how far it gets inside the sub which calls the variety of simple date conversions.

0
 
LVL 7

Assisted Solution

by:Burbble
Burbble earned 500 total points
ID: 11714870
It could be that an error is occuring within the "variety of simple data conversions, etc" Sub, and is being handled by an error handler in MySub() by an Exit Sub command.

But... Without the code I cannot really say for sure.

-Burbble
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

661 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question