A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Why always stop on a line?



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2005, 09:35 PM
Min
external usenet poster
 
Posts: n/a
Default Why always stop on a line?

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?


  #2  
Old April 16th, 2005, 03:11 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default

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.

--
HTH
Van T. Dinh
MVP (Access)


"Min" wrote in message
...
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?




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop [SPAM] in the Subject line of my messages? vb53708 General Discussion 1 April 2nd, 2005 07:21 AM
How do I stop the auto capitalization of words on a new line? JWA General Discussion 1 March 1st, 2005 04:00 PM
axis label multi line help SP Charts and Charting 4 January 23rd, 2004 09:44 PM


All times are GMT +1. The time now is 08:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.