Why always stop on a line?

M

Min

Hi, I am using Access 2000. I created some code behind a form. When the
form loading, it always stop at a line. The line is highlighted, press RUN,
the code will be executed smoothly and next time run to this line was fine.
This happens only when open the database and run this line first time.

The line is:
dtPicker = Date

This line caused an error when I copy the database to a new PC, because the
PC's date format mismatch the previous one. I changed the date form of the
PC, everything seemed fine except just whenever running to this line First
Time, it will stopped and the line is highlighted.

Anyone can help?
 
V

Van T. Dinh

Occasionally, a phantom break got stuck in the code.

Try:

* Open any code window
* Type some space characters at the end of any line then move the cursor to
another line. This simply allows you to re-compile the code.
* Use the Menu Debug... / Clear all breakpoints.
* Recompile and save.
* Close your database & re-open for testing.
 
Top