I don't see any replies to this one. If you want to step through your code, you place a break point by clicking on the left side of the code window. A red circle appears next to that line. When that code line is executed, it will stop there and you can use F8 to step into subroutines, Shift+F8 to step through the code without going into subroutines, etc.
The "Debug Window" in Access is actually a different thing. You hit Ctrl+G to see it. I mainly use it for the Immediate Window, but I think you can also set variables to Watch or see current variable values. If you place a line in your code like...
Debug.Print variableName
... it will output that variable value to the Immediate window. Also, you can go to the Immediate Window and type in a question mark and any expression to have it evaluated in real time. For example:
? variableName / 60
Hope that helps,
Toby
-----Original Message-----
From: AccessDevelopers@yahoogroups.com [mailto:AccessDevelopers@yahoogroups.com] On Behalf Of backyardautopart
Sent: Sunday, June 19, 2011 2:22 AM
To: AccessDevelopers@yahoogroups.com
Subject: [AccessDevelopers] Did I turn off the step-intoI have not seen the debug window in a long time in my program. I put the word Stop into my 2002 Access code and the program ignores it. I have error trapping code throughout.
__._,_.___
Please zip all files prior to uploading to Files section.
.
__,_._,___
Tidak ada komentar:
Posting Komentar