Computer Learning Zone CLZ Access Excel Word Windows

Our academic system rewards people who know a lot of stuff... but at the end of the day who do you want: the person who can figure things out that they've never seen before or the person who can rattle off a bunch of facts?

-Neil deGrasse Tyson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Captain's Log    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
OOP
Richard Rost 
          
2 years ago
An interesting take on Object Oriented Programming. As I've repeatedly said, in my 30+ years working with Access and VBA, I've never needed it.
Adam Schwanz  @Reply  
           
2 years ago
I think it depends on how big of an application you're making, small/simple things don't really need it, and I don't think there is a real need for it in Access that you can't just use a public function for. But I've been learning a lot about javascript/react and the likes to build a web application for the last 6 months and one thing I've heard and noticed is when you get to around 300+ lines of code in the same page/form/function, it starts to turn into spaghetti, OOP seems to help with that drastically.
Sami Shamma  @Reply  
             
2 years ago
I still would love to learn how to use it with access.
Richard Rost OP  @Reply  
          
2 years ago
You will. I'll be covering it... More because it's "neat" than a necessity. You can do some cool things with it... I've just never NEEDED it.
Thomas Gonder  @Reply  
      
16 months ago
I'm an old school programmer, and over the years I've found the need to pass a variety of parameters to a public SUBROUTINE to make it more useful in a variety of situations.  Often the results of the sub are passed back for further processing after the calling statement.  I would be very interested to see how well that might work in OOP.
Richard Rost OP  @Reply  
          
16 months ago
That's actually much easier because you can pass an entire object as a parameter.
Thomas Gonder  @Reply  
      
16 months ago
@Richard Let's take something I'm working on at the moment. I need to format address in a variety of ways. For example, in some countries, the postal service may require a certain format, but other private delivery companies may require a different format. Sometimes I want the Entity's name added to the label, and other times not, it depends on the address. The "objects" I may need to pass are the Address and the Entity data (name which may depend on what kind of Entity it is). And in all cases the delivery service. Bundle all that up to get a properly formatted address returned in an array, for each line. The actual printing program might print a standard label, or need to take array elements and place them in certain positions on the waybill. Addresses are in a table, and there is a separate postal code table, all of which consider the country that the address is in. We don't allow "ad hock" address entry in things like an order table.

Now consider this interesting situation. I want to send something to Richard. Richard works at another Entity: Amicron. So, I have an address for Amicron, but I want to send the package to Richard at Amicron. In this case I have two Entities and one address for Amicron. I could use the same address record for Amicron, and make it a duplicate for Richard (in the one-to-many table). But the delivery service and your work want to see both "Attn: Richard" and Amicron on the label, or it won't be delivered or accepted.

To get this all done may require a dozen parameters that aren't in the Entity or Address objects. I did this all once before (not in VBA), many years ago; it was a huge subroutine. I've read some OOP references, but they seem tackle much simpler and straight forward issues.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Captain's Log.
 

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 12:15:52 PM. PLT: 1s