Computer Learning Zone CLZ Access Excel Word Windows

There are many hypotheses in science which are wrong. That's perfectly all right: it's the aperture to finding out what's right. Science is a self-correcting process.

-Carl Sagan
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Time in VBA
Chris Lopez 
      
2 years ago
IS there a way to set a VBA code to input the current time in a text box when clicked instead of manually typing the time in the field?  Id like to use the 24 hour format if possible.

Thanks
Adam Schwanz  @Reply  
           
2 years ago
Ctrl+shift+semicolon enters current time.

You can also just set the value in the onclick event of the field
Fieldname=now()

For 24 hour just set the formatting. I think its short time that shows 24 hour, or make the format yourselfFormat
Chris Lopez OP  @Reply  
      
2 years ago
Thank you for that information, i thought thats what it was, but i put that VBA code in and i get the error "a problem occurred while microsoft access was communicating with the ole server". I thought that maybe i did something wrong in VBA.
Adam Schwanz  @Reply  
           
2 years ago
Sounds like something else, Try to compile the database and put option explicit on CompileOption Explicit

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor 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 5:41:49 PM. PLT: 1s