Solved

Access 2013 - how to step into the code

Posted on 2015-02-10
4
131 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

739 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