Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Optional Date Parameter    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Optional Date Parameter
John Schreiber 
      
2 years ago
You talked about having an optional date if the user does not enter a date. But you never showed how a user would enter a date.  I am kind of lost on how Carsons question was answered. Should this be extended to show a date field being given an optional date and then the user can override that day and enter their own date?
Kevin Yip  @Reply  
     
2 years ago
The video (which is a very good tip) isn't really about user entry.  It's about passing an argument to a function in VBA.  An argument is what a function uses internally.  The user may not even need to know what that is.  To do what you described, you may put a default date of today's date (=Date()) on the property sheet of a textbox, for instance.
Sami Shamma  @Reply  
             
2 years ago
If it is a Sub

Without Parameter: Mydate

With Parameter: Mydate DateField
Sami Shamma  @Reply  
             
2 years ago
if it is a function Then

Without Parameter: Mydate ()

With Parameter: Mydate (DateField)
Kevin Robertson  @Reply  
          
2 years ago
Here is a simple example (see screenshot below).
Kevin Robertson  @Reply  
          
2 years ago

John Schreiber OP  @Reply  
      
2 years ago
Thans Kevin, that is what I was looking for.
Kevin Robertson  @Reply  
          
2 years ago
You're welcome.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Optional Date Parameter.
 

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: 8/6/2026 11:55:07 PM. PLT: 0s