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 Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Flashing Text
Bruce McCormick 
   
2 years ago
In "Create Flashing Text in Microsoft Access Forms Using a Timer Event - Blinking Red/White Text Box" we saw how to create flashing text. How can this be triggered by the value (more specifically, an empty value) of a text box when the user clicks to exit the form?

Thank you!
Kevin Robertson  @Reply  
          
2 years ago
Do you mean prevent the form from closing if the field has no value and have the entire field flash?
If so give this code a try (modify for your needs):

DetailsPrivate Sub Form_Timer()

    Static counter As Long
    
    counter = counter + 1
    
    If counter Mod 2 = 0 Then
        MyValue.BackColor = RGB(255, 0, 0)
    Else
        MyValue.BackColor = RGB(255, 255, 255)
    End If
    
End Sub

Private Sub Form_Unload(Cancel As Integer)

    If IsNull(MyValue) Or MyValue = "" Then
        Me.TimerInterval = 700
        Cancel = True
    End If
    
End Sub


Note: Leave the Timer Interval at 0 in the Property Sheet.
Bruce McCormick OP  @Reply  
   
2 years ago
Thank you very much Kevin!

I just have to untangle some of my shots in the dark here and will be back, but i am very confident in your work.

Best Regards,
-Bruce
Alex Hedley  @Reply  
           
2 years ago
Bruce McCormick OP  @Reply  
   
2 years ago
@ Kevin - Worked great, just tweaked a bit so when user clicked in the field they were supposed to fill in it brought it back to "normal"!

@ Alex - Thank you for providing the link to the extended cut. I thought that might have the additional info i was looking for but on YouTube i just couldn't find it.
John Davy  @Reply  
         
2 years ago
Hi Bruce
Happy that you have it working. Just a note - Be careful, for blinking fields may cause seizures for some people.

John
Bruce McCormick OP  @Reply  
   
2 years ago
Excellent point. I will change it to some color other than red, as if i recall, red is the worst for that, and give it a relatively slow rate. You would have thought i would have at very least remembered that scene in "The Andromeda Strain"...
Bruce McCormick OP  @Reply  
   
2 years ago
And btw, i am dealing with a person who had seizures in his younger days, so your advice is very much appreciated-

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer 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/1/2026 10:40:26 PM. PLT: 0s