Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Access
Back to Access Forum    Comments List
Update Date and Time Field Upload Images   Link   Email  
Giovanni Miranda      
16 months ago
I've used this formula before using the BeforeUpdate in Access:

Private Sub RecordLastUpdated_BeforeUpdate(Cancel As Integer)
    RecordLastUpdated = Now()
End Sub

So, I created another form to do the same thing but with a change in the language:

Private Sub FormLastUpdated_BeforeUpdate(Cancel As Integer)
    FormLastUpdated = Now()
End Sub

But it doesn't work???? I have a subform in each Form so on the first one I did anytime you go to the subform it automatically changes the DATE/TIME Field properly.

But, on the second form it doesn't change it at all anytime I make a change to the form on the first one it updates automatically when I click in the subform. Not so with the second form, time and date stay the same.?????

Can someone tell me what I'm doing wrong?
John Davy           
16 months ago
Did you notice that the first example you have RecordLastUpdated and the second example you have FormLastUpdated?
Giovanni Miranda      
16 months ago
Yes, and to tell you the truth I figured out what I was doing wrong...I was not writing the code for the FORM itself but for the FIELD itself. Duh??? I since have changed the code for the FORM and all is working fine now.  Thanks for your feedback.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/15/2024 4:34:54 AM. PLT: 0s