Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Access VBA Window Timer
John McFarlane 
    
6 years ago
When I am in my VBA editor inserting a DIM statement sometimes the DIM is coloured red and the cursor will jump back to DIM when I press the space bar. I end up with DIM| or DIMSas|, I tried Richards recent Search Tech Help and was trying to set the variable Dim s as String. When I try Compile in the Debug the window points to a syntax error. Ive had this in other databases but cant put my finger on it  any ideas anyone?
Alex Hedley  @Reply  
           
6 years ago
Do you have Option Explicit at the top?
Are you clicking off the line after typing Dim, in older versions youd have to complete a valid line before moving to another or it would complain.
John McFarlane OP  @Reply  
    
6 years ago
No, there is no Option Explicit at the top, I'm using Access 2019.
Richard Rost  @Reply  
          
6 years ago
Do you have another form open in the background with a TIMER event running? That will cause the behavior you describe in the VBA editor. Used to happen to me all the time. Close that form and it should stop.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/2/2026 6:52:53 AM. PLT: 1s