Solved

Access 2013 - how to step into the code

Posted on 2015-02-10
4
126 Views
Last Modified: 2015-02-10
My oS is win 7 prof 64 bit and I use Access 2013.  I have a small form in Access where I have written some code, and i would like to step into the code, to see what line is being executed until the end of the procedure.  i had inserted by clicking on the Step into under Run, but when I ran the code from the command button, it just ran thru, and did not execute line by line.  How do i implement for the code to execute line by line.  Thank u.
0
Comment
Question by:jegajothy
4 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 40601352
after the name of the sub, place Stop

sub mysub()
Stop

then to proceed with the code line line by line press F8
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 40601501
Along with the Stop mentioned by Rey, you can also add breakpoints in your code by either clicking on the bar to the left of the code you want to stop at or pressing F7 on your keyboard.

Ron
0
 
LVL 30

Expert Comment

by:hnasr
ID: 40601642
Both comments are fine.

Another variation when checking code is to insert a message box just before required code.

MsgBox ("Press Ctl+Alt+Break if you like to step into code")

Open in new window


When message is displayed Press Ctl+Alt+Break and click Debug to step into code.

When testing part of code, you can move the Message Box to a new location. When done, just comment the line.
0
 

Author Closing Comment

by:jegajothy
ID: 40601700
a clean code, thank u.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

831 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