Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Status Box    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Status Box Question
David Clement 
      
24 hours ago
Hello Richard amd others,
Can you please advise me on this issue.
I am making my version of a MainMenuF. It has 2 status boxes. One will for any kind of status situation that a form may need. The other status box is labeled About, and it just lists that is was created by me and the date is was created. I also have a Date Box and a current time box that uses the timer procedure to display the current time. If I use the DoEvents, it stops the time box from working. I asked chatGPT for a solution, and this is what it gave me.


Private Sub Form_Timer()

    Clock1 = Now()

End Sub



Private Sub Status(S As String)

    Me.StatusBox1.Value = S & vbNewLine & Me.StatusBox1.Value

End Sub


Private Sub Status2(S As String)

    Me.StatusBox2.Value = S & vbNewLine & Me.StatusBox2.Value

End Sub


Private Sub StatusBox1Btn_Click()

    Status "Created By MadMax Studios 11/12/2026"

End Sub


Private Sub StatusBox2Btn_Click()

    Status2 "Test"

End Sub
Not having a DoEvents in the code, will it mess this form up from doing other things?
Thank you!
David Clement OP  @Reply  
      
24 hours ago

David Clement OP  @Reply  
      
24 hours ago
Sorry about the mis spellings.
I need to proof read better. :-(
Kevin Robertson  @Reply  
          
23 hours ago
Have you set the Timer Interval to 1000?
Alex Hedley  @Reply  
           
23 hours ago
Is that the Alias font?
David Clement OP  @Reply  
      
22 hours ago
Kevin, Yes
Alex, Yes
David Clement OP  @Reply  
      
22 hours ago
Kevin, that code for the timer event won't run with the DoEvents in the form. As soon as I took it out, the timer ran just fine. I guess maybe having 2 different status events may not be such a good idea? I don't know this stuff well enough to understand why it would matter, having 2 status events.
Add a Reply Upload an Image
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/14/2026 1:52:51 PM. PLT: 1s