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 
Calculated Date Field
Taruna Matharu 

3 years ago
Hello All,

Please can you confirm if this is possible.

I have a calculated date field in the form "Due Date". The formula is Issued Date + 30 however in some cases the # of Days can be less than 30 in that case can we manually update the Due Date field?

Or there is any other solution.

Thanks
Taruna
Adam Schwanz  @Reply  
           
3 years ago
If it is a calculated field as in a table calculation or a query calculation, you cannot change it.

Instead use VBA to update the field. Make a field called DueDate in your table, type Date/Time
Then depending on your setup, you will need to find a good time to fire the code, probably either in the after update of the issued date or the on current event of the form. To set the value of duedate to issueddate+30, then you can still change that value if it is something different. (Also would need to make sure the VBA code your using to set the date doesn't over-write the value that you changed manually, again that is going to depend on your setup choice)
Adam Schwanz  @Reply  
           
3 years ago
Or just make a button next to the due date that says +30 or something, then in the code for that button make it set the value to IssuedDate+30, otherwise you have to manually enter it, that's probably the easiest solution. Then it will only automatically set the value when you push the button, otherwise you can manually put any date.

On click event, the isnull check just prevents you from accidentally over-writing things if it's already set.

If Not IsNull(IssuedDate) and IsNull(DueDate) Then
DueDate=IssuedDate+30
End If

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/6/2026 7:57:18 AM. PLT: 1s