How to Use Class Modules in Microsoft Access

  Рет қаралды 1,618

Sean MacKenzie Data Engineering

Sean MacKenzie Data Engineering

Күн бұрын

Пікірлер: 14
@Shadow.Dragon
@Shadow.Dragon 3 ай бұрын
Thanks for the great video, Sean!
@seanmackenziedataengineering
@seanmackenziedataengineering 3 ай бұрын
My pleasure!
@hassanrozh6579
@hassanrozh6579 3 ай бұрын
Thanks so much for this video, we appreciate.
@seanmackenziedataengineering
@seanmackenziedataengineering 3 ай бұрын
Glad it was helpful!
@tuffley2175
@tuffley2175 3 ай бұрын
Looks like crossing the border Lot to me and seems valuable Will Download and try to understand Thanks💫
@seanmackenziedataengineering
@seanmackenziedataengineering 3 ай бұрын
Oh yes, this topic takes you to the "other side" of development. OOP can be very fun.. and useful! Download added mackenziemackenzie.com/downloads
@serdip
@serdip 3 ай бұрын
Thanks for posting this very interesting and informative video. It would be great to take the discussion to the next level by explaining interfaces and their implementation. For this example, I envision an interface for Candy objects , ICandy, and for CandyBox objects, ICandyBox. Also, if we add a Capacity property to the CandyBox object, then the AddCandy() method could raise a custom event BoxFull to display a message that the current instance of CandyBox is now full. Subsequent calls to AddCandy() might perhaps quietly ignore inputs. Database tables and Excel ranges are among several ways of persisting instances of a class between sessions. I used such a technique in a large Excel application that modeled industrial ergonomic risk factors. Thank you kindly.
@seanmackenziedataengineering
@seanmackenziedataengineering 3 ай бұрын
Thanks for sharing!
@zoranstojanovski8407
@zoranstojanovski8407 4 күн бұрын
To bad Access has no option to bind class collection to form, so when you add Candy you can view in subform, and when you click submit button to add candy box in a main table and all candy's in separate table. In that way user can decide to save or not changes like word document.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 күн бұрын
Interesting observation. I think you're right - it would be nice to be able to do that. Some things you can do are to load other objects like listboxes and combos on the fly. In the past, I did solutions where users did input on a subform in some kind of temp table. Then, they would need to click a button to commit the changes (basically append them to the production table). This is useful in some use cases. Thanks for sharing!
@simondodge9733
@simondodge9733 3 ай бұрын
Interesting. I am still trying to get my head around exactly how I would use objects in my database (I am an old mainframe programmer, so have built a database without OO programming, LOTS of VBA code ). I have many tables , most with many fields. I'm trying to understand what the benefit is to me of using class objects.. IS there a performance difference ? IE do all the records get loaded into memory once and then replace IO with memory access until I update/commit an update ? It would seem that I am going to need as many objects as I have tables where each object matches a record in a table (each field in the record becomes a property of the object).
@seanmackenziedataengineering
@seanmackenziedataengineering 3 ай бұрын
In some ways, my background might be similar to yours in that I used procedural programming for the vast majority of my functionality. It works great, and you don't really _have_ to use OOP for the vast majority of tasks. However, one major overlap between OOP and Procedural started happening when I would create a meaty module for some complex system. Eventually that module would get some spice on it in the form of Public or Global variables that I needed to recall over and over while I performed a particular function. Sometimes I actually needed _two or more_ of that meaty module running at the same time while some batch procedure ran. Sure, I could write workarounds that stored values here and there while I tried to use the module twice.. but it just got crufty. That is when I discovered the class module.. I could take that meaty module and turn it into and class and run two or more of that logic at the same time from form VBA or some other module, maybe comparing values or committing each one's data at the desired time. Then I discovered that I could break that big class into smaller ones that could have their own functionality.. then eventually OOP came naturally.. and yes, you can avoid a ton of your IO and dependency on disk and network by having some nice performant objects in memory. It is like night and day in terms of performance.
How to Use Streamlit with Microsoft Access
24:34
Sean MacKenzie Data Engineering
Рет қаралды 1,5 М.
Word Expert Tutorial
3:39:03
Learnit Training
Рет қаралды 877 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 3,8 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 188 МЛН
Class Modules in VBA: Made Super Simple
17:43
Excel Macro Mastery
Рет қаралды 35 М.
Getting Started with MS Access Visual Basic for Applications - VBA Code-Behind and Modules
32:06
The Right Way To Return API Errors in .NET
10:40
Nick Chapsas
Рет қаралды 51 М.
Web Data Entry for Microsoft Access
21:49
Sean MacKenzie Data Engineering
Рет қаралды 1,6 М.
40 Years Of Software Engineering Experience In 19 Minutes
19:10
Continuous Delivery
Рет қаралды 94 М.
How to Get the Windows Username in MS Access
16:02
Sean MacKenzie Data Engineering
Рет қаралды 6 М.
Microsoft Access Tips | How to use VBA Recordsets and Modules
19:23
LoopLearnings
Рет қаралды 4,4 М.
Debugging Tools for VBA in Microsoft Access: A Comprehensive Guide
10:03
Pharos Technology
Рет қаралды 1,1 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН