473,410 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Why when Im writing code and I hit the 'Space Bar' it jumps back a spot and turns red

anoble1
245 128KB
This has been going on for a while now. When I edit code or write new code in Ms Access, When I say like DoCmd.***
I can't even get the options to stay on the screen for more than 1 second, they go away and it backspaces and turns red cause it's incorrect. Also, when I say IF somthing right before or after I hit the S it reads IFSo....

It's so nerve racking, probably makes no sense. I will try and post some screenshots if you can see them.

It's when I start typing it backspaces and turns red and keeps doing it.
Attached Images
File Type: jpg ScreenShot069.jpg (42.4 KB, 919 views)
Sep 27 '10 #1

✓ answered by Stewart Ross

I have had this occur when a short-duration On Timer event is set for an active form in the DB concerned. If you are editing a VBA module whilst the form concerned is active the On Timer event continually interrupts the VB Editor, giving the red text and apparent errors, and indeed stopping intellisense from working at all.

In my case the On Timer event was used to display a little clock on the main switchboard, updated each second. I eventually removed this 'helpful' feature to allow me to continue development work unhindered...

-Stewart

5 8633
MMcCarthy
14,534 Expert Mod 8TB
Simple answer is I have no idea :D

OK in the VB Editor go to tools - options.

Under the Editor tab make sure all the checkboxes are ticked.

BTW, what version of Access are you using.
Sep 27 '10 #2
anoble1
245 128KB
2007, it was doing it in 2003 as well. I wish I could explain my problem better.
Sep 27 '10 #3
Stewart Ross
2,545 Expert Mod 2GB
I have had this occur when a short-duration On Timer event is set for an active form in the DB concerned. If you are editing a VBA module whilst the form concerned is active the On Timer event continually interrupts the VB Editor, giving the red text and apparent errors, and indeed stopping intellisense from working at all.

In my case the On Timer event was used to display a little clock on the main switchboard, updated each second. I eventually removed this 'helpful' feature to allow me to continue development work unhindered...

-Stewart
Sep 27 '10 #4
colintis
255 100+
Stewart, so where can we stop the On Timer event thing? can you give us some instructions?
Sep 28 '10 #5
MMcCarthy
14,534 Expert Mod 8TB
You need to find where the OnTimer event appears in your code, macro or has a command programmed directly into the event property.
Sep 28 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Miktor | last post by:
At the minute I am using the following rather unwieldy function to prevent the console window in Dev C++ from closing before I can see the output from my program: // function to prevent the...
1
by: Daniel | last post by:
when writing out a file from .net, when is the file created? after the bytes are all written to the hard drive or before the bytes are written to the hard drive?
2
by: ertanasan1 | last post by:
Hi, //Returns a new dataset with tree datatables. dsTemp.ReadXmlSchema(@"C:\mysch.xsd"); //Add a row to data table 0 DataRow dr = dsTemp.Tables.NewRow(); dr = "value1";...
1
by: Monty | last post by:
Hi, I am using Access for a back-end database. I can't use the automated updating provided for SQL databases, so I need some assistance in writing the code that does the actual updating, deleting...
2
by: Sound | last post by:
Enter space bar for field names and save the field.The field shoud not get saved and an alert should be there as"Space bars are not allowed" Add a field without giving any name and save the...
2
by: Fred Dag | last post by:
Hi, When writing using both these methods ( StreamWriter.Write("\n") vs WriteLine() ) to a file and open in Notepad I see a special character instead of newlines with Write("\n") vs a newline...
5
by: ceejee | last post by:
hello there! i had spent lots of time searching and thinking what is the reason why in onClick event like the one below, when a certain space between words is existed, it doesnt function well. can...
4
by: olseni | last post by:
Hi all I have a problem using datasheet in a subform (Access 2007). When the user is updating numbers or text in a column, and jumps to the next record using the 'Enter' button, sometimes, but...
2
by: =?Utf-8?B?S3VtYXI=?= | last post by:
I am using granados telnet client for connecting to the telnet and get the data from it. Every thing appears to be going smooth. But for some reason when I try to write the byte data to a string or...
21
by: AdamOnAccess | last post by:
I am trying to set the focus on a button that sits on page 1 of my tab control. It looks like I'm successful at setting the focus because I see the highlight on the button, but when I push the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.