Step by step it works but...

R

raulcobo

Hello to all:
I have a program made in VB and Access. I have a very rare problem and
I don´t know how to solving it. When I execute it, the program fails
(does not leave any message error. I know that it fails because it
does not update the registries of the database), however, if I execute
it step by step, the program works perfectly. Somebody knows where the
problem can be? Thank you very much for your attention and sorry for
my bad english.
 
C

Carlos J. Quintero [VB MVP]

Hi Raul,

Are you using the same configuration in both cases? That is, are you using
the Debug configuration when you run the app without debugging. If it is not
the same, maybe there is something different in both configurations, or some
conditional statements using #If DEBUG

Also, a way to solve this is putting some messageboxes in your code to guess
the code flow. At some point the statement which updates the database is not
reached, or it fails silently.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com


"raulcobo" <[email protected]> escribió en el mensaje
Hello to all:
I have a program made in VB and Access. I have a very rare problem and
I don´t know how to solving it. When I execute it, the program fails
(does not leave any message error. I know that it fails because it
does not update the registries of the database), however, if I execute
it step by step, the program works perfectly. Somebody knows where the
problem can be? Thank you very much for your attention and sorry for
my bad english.
 
N

nyohan

It sounds to me like you may have a timing issue. When you step
through the program it is giving the program more time to complete the
access execution. Try throwing in a vew DoEvents to help things finish
up.
 
N

nyohan

It sounds to me like you may have a timing issue. When you step
through the program it is giving the program more time to complete the
access execution. Try throwing in a vew DoEvents to help things finish
up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top