Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Design Changes    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Design Changes Extended Cut
John Davy 
         
3 months ago
Hi Rick, I went through the Video for a second time after playing with the code. I urge you to continue with more - such as saving Forms, Reports, etc. as text file, comparing to see what changed etc. This is very useful and helpful!  Thanks John
Michael Flanagan  @Reply  
      
3 months ago
I agree. More, please.
Alex Hedley  @Reply  
           
3 months ago
Jerry Fowler  @Reply  
       
3 months ago
Also, would like to see something like what objects are associated with what forms, reports, and queries. I see this becoming like a Developer video or a Seminar
Dave Clark  @Reply  
            
3 months ago
Hey Guy's Can Anybody tell me what is wrong with the rs!VBACode = VBACode  In this Code?

' MODULES ------------------------------------------------------------
    For Each O In CurrentProject.AllModules
        VBACode = GetVBACode(O.Name)
        Set rs = db.OpenRecordset("SELECT * FROM ObjectDateT " & _
            "WHERE ObjectType=""Module"" AND ObjectName=""" & O.Name & """")
        If rs.EOF Then
            ' module is not in the table, add it
            rs.AddNew
                Status O.Name & " is new"
                rs!ObjectName = O.Name
                rs!ObjectType = "Module"
                rs!DateCreated = O.DateCreated
                rs!DateUpdated = Now()
                rs!VBACode = VBACode
            rs.Update
        Else
            ' the module IS in the table, see if the code is different
            If VBACode <> Nz(rs!VBACode, "") Then
                ' code IS different! Update it!
                Status O.Name & " is changed"
                rs.Edit
                    rs!DateUpdated = Now()
                    rs!VBACode = VBACode
                rs.Update
            End If
        End If
        rs.Close
    Next O
    
    Set rs = Nothing
    Set qd = Nothing
    Set td = Nothing
    Set O = Nothing
    Set db = Nothing
    
    Status "Update check completed"
    
    DoCmd.OpenTable "ObjectDateT"

End Sub
Richard Rost  @Reply  
          
2 months ago
Sorry for taking so long to see this.

Dave, there is nothing inherently wrong with this line:

rs!VBACode = VBACode

That is the correct syntax, assuming VBACode is a String returned by GetVBACode. The most common issue is that the VBACode field in ObjectDateT is defined as Short Text. It needs to be Long Text, since even a modest module can easily exceed the 255-character Short Text limit.

Also make sure GetVBACode is actually returning the module text and not Null. If you are getting an error, post the exact error message and the definition of the VBACode field from ObjectDateT, and I can narrow it down quickly.

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

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: 9/5/2026 1:47:15 PM. PLT: 1s