Results 1 to 6 of 6
  1. #1
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164

    Debugging - F8 not stepping through the code?

    Sometimes but not always (Probably more than not)



    I get a bleep when pressing the F8 key whilst trying to debug a code, other times it will cycle from the code and perform an action.

    Why is this?

    Thanks

    Darren

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    usu the beep means you cant move because something else is open, like a popup screen.
    But if thats not the case, can you select the next line and click SET NEXT STATEMENT?

  3. #3
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    Attachment 27866




    Hi,


    I still get the bleep but when checking the debug menu, Set next statement is Greyed out?


    No Access forms or elements are running at this point, Access 2016


    Thanks


    Darren

  4. #4
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    Further Update:


    Just tried advice on google (Code example)


    It works with that piece of code, steps through 1 line at a time.


    Can you only debug certain bits of code?


    Attachment 27867

  5. #5
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,412
    Did you set a breakpoint? The debugger needs to know where to start the code execution.
    In your example, it looks like the code in the background is for an after_update event. Simply pressing F8 while some code is showing will not execute that code.

  6. #6
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    Thanks Dave, I'm fairly new at programming.
    So no I didn't set a breakpoint, just out, ill try that when I get back.

    Thanks for taking time to help

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Code works only when manually stepping through it
    By john134 in forum Programming
    Replies: 16
    Last Post: 08-15-2016, 04:41 AM
  2. Replies: 15
    Last Post: 08-07-2015, 03:28 PM
  3. Replies: 11
    Last Post: 12-11-2013, 10:35 AM
  4. Debugging
    By eacollie in forum Programming
    Replies: 2
    Last Post: 06-04-2011, 05:29 AM
  5. Debugging help
    By Buakaw in forum Access
    Replies: 3
    Last Post: 02-16-2011, 09:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums