Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 

Access Developer 61

0. Find Orphan VBA Code (4:52)
How To Find Orphaned VBA Event Procedures From Deleted Control Code in Microsoft Access
Building an orphan VBA event code detector
Inspecting an Access form VBA module
Using Module objects and procedure line information
Using ProcOfLine to identify event procedures
Detecting missing controls for event code
Using the Controls collection to find controls
Using ProcStartLine and ProcCountLines
Creating a data-driven event procedure table
Scanning form-level and report-level event procedures
Moving the scanner to a global VBA module
Scanning individual forms and reports for orphans
Scanning all forms and reports in a database

1. Orphan Detector 1 (19:03)
Build an Orphan Code Detector Using the VBA Module Object
Orphaned VBA code behind Access forms
Access form Module objects
Access declaration lines and CountOfDeclarationLines
Looping through VBA module lines
Using CountOfLines in a Module object
Finding procedure names with ProcOfLine
VBA procedure ownership by line number
VB procedure types and normal procedures

2. Orphan Detector 6 (13:32)
Find Orphaned Click Events and Skip Through VBA Procedures
Identifying VBA Click event procedures
Extracting control names from procedure names
Checking whether form controls still exist
Detecting orphaned Click event procedures
Using On Error Resume Next for missing controls
Using ProcStartLine to find procedure starts
Using ProcCountLines to count procedure lines
Skipping VBA code one procedure at a time

3. Orphan Detector 6 (11:47)
Use an Event Table to Find Multiple Types of Orphaned VBA Code
Creating an event name table for orphan detection
Opening an event table recordset in VBA
Looping through event names with a recordset
Matching procedure names to control event names
Extracting control names from event procedures
Detecting orphaned control event procedures
Skipping form-level event procedures

4. Orphan Detector 6 (31:59)
Scan Individual Forms, Reports, or Entire Database for Orphan Code
Moving Find Orphans to a global module
Passing form and report objects to Find Orphans
Creating a form and report selector combo box
Loading database objects into a value list combo box
Scanning a selected form for orphan event procedures
Opening forms hidden for orphan scanning
Keeping already open forms from being closed
Adapting orphan detection for reports
Opening reports hidden for orphan scanning
Creating helper routines for form and report scans
Scanning every form in the database for orphans
Scanning every report in the database for orphans
Displaying orphan counts and object names

5. What's Next (9:06)
Review of Orphan Code Detection and VBA Maintenance Tools for Databases in Microsoft Access
Detecting orphaned VBA event procedures
Scanning form and report event procedures
Database-wide orphan code detection

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Access Developer 61
Get notifications when this page is updated
 
 
 
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: 10/28/2026 9:50:11 PM. PLT: 1s
Page Tag: outline access 4 61  PermaLink  Access Developer 61 Outline