Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > Forums > Access Forum > Random Error Popup by Kathy Johnson
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Random Error Popup
Kathy Johnson 
      
6 months ago
Every now and then I get an error message pop up when I open my database.
"The expression On Timer you entered as the event property setting produced the following error: Return without GoSub.
*The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure].
* There may have been an error evaluating the function, event, or macro."

For context: I have a date and time text box on my main page. The Form Timer is me.TextTime = Now() The error pops up when I try to do anything from that main page. If I go into design mode and click in the Form Load sub (not change anything) and then save it, the problem seems to go away. What can I do to eliminate the possibility of this error in the future?
Richard Rost  @Reply  
           
44 days ago
Sorry it has taken me so long to see this. I sometimes go back through older threads I missed, and this one deserves a follow-up. Kathy, are you still getting this error?

I wouldn't assume that you need to add a GoSub statement. That one line doesn't tell us why Access is throwing the error. First, make a backup. Check that the form's On Timer property says [Event Procedure], with TextTime = Now() inside Form_Timer, rather than putting that assignment directly in the property box.

Then open the VBA editor and run Debug > Compile. Fix any errors it identifies, save, close Access and reopen the database. My Compile video walks you through it.

Run through my Troubleshooting Checklist and let us know exactly what you've tried. If it's still happening, post the complete Form_Timer and Form_Load procedures, your Timer Interval setting, and your Access version/build. The fact that saving the form temporarily clears it is useful information, but it doesn't establish the cause.

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

Next Unseen

 
 
What's This?

 

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: 11/30/2026 10:50:57 AM. PLT: 1s