Results 1 to 7 of 7
  1. #1
    Glenn_Suggs is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    72

    Erratic behavior of cursor in VBA editor

    Hello. I have what seems to be a strange problem with the IDE in Access. I can't find a setting that I may have accidentally turned on/off but here's what happens. I try to space across a line (on a Dim statement for example) and before I've moved 2 or 3 spaces, the cursor jumps back to the end of the keyword Dim. Also the word Dim turns red. (indicating an error?) Also, when I'm in a form module and try to manipulate one of the controls on the form, I type me. and I usually get a list of possible choices to pick what comes next. However, the list flashes briefly and then the me. (including the dot) turns red. How's that for a wacky editor? This has been happening for a couple of days so re-booting doesn't help. Any ideas?

    Thanks in advance.


    Glenn
    Last edited by Glenn_Suggs; 04-23-2014 at 03:50 AM. Reason: typo in title

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    One possible culprit is a form open with a timer event running in it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It almost seems like your keyboard may be putting out cursor movement codes.
    Oops: Paul got in there before me. Sorry.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Quote Originally Posted by RuralGuy View Post
    Oops: Paul got in there before me. Sorry.
    Fastest fingers in the west!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Glenn_Suggs is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    72
    Quote Originally Posted by pbaldy View Post
    One possible culprit is a form open with a timer event running in it.
    Thank you, pbaldy. The problem was indeed an open form with the timer event running. The timer was put in to shut down the application if a user left it open past a certain length of time without doing anything. Now I can take appropriate action when I'm making changes to the code.
    Thanks again.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Hmm...those fast fingers are accurate as well. Thanks for the update.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    No problem. That drove me crazy the first time I ran into it. Explains a lot, eh Allan? Now you know why I'm crazy!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Changing the cursor
    By BernardKane in forum Forms
    Replies: 4
    Last Post: 10-24-2022, 09:59 AM
  2. Replies: 2
    Last Post: 05-25-2013, 09:16 PM
  3. cursor in a blank form
    By kris335 in forum Forms
    Replies: 3
    Last Post: 09-26-2012, 02:26 PM
  4. Replies: 2
    Last Post: 02-17-2012, 04:09 AM
  5. T-SQL Cursor within a cursor
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 6
    Last Post: 04-14-2011, 12:31 PM

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