Use One Function to Handle Many Form Events in MS Access

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

Sean MacKenzie Data Engineering

Sean MacKenzie Data Engineering

Ай бұрын

In this episode, we'll take a look at a little-known way to use event properties in Microsoft Access. By creating a single "sub-like" VBA function in a centralized module, we are able to set that function call as an event property on a form.. ..without writing a single line of "code-behind" for the form. The method can assist in simplifying functionality that is called on dozens or hundreds of events throughout an application by eliminating the need not only for repeated code in Event Procedures, but also Event Procedure code required to call centralized functions. Let's go!
Block spammers from harassing your Remote Desktop, filling your Windows security logs with failed RDP attempts, and burning up your bandwidth with my BZ RDP Cloaker:
buy.billzone.com/bzrdpcloaker...
Check out my easy time entry system for your business:
system.billzone.com/billzone
Join me on Patreon!
/ mackenziedataengineering
Check out some tech (and support my channel!):
www.amazon.ca/shop/seanmacken...
Want the code from this video?
mackenziemackenzie.com/downloads
For developers looking for a new role, check out and sign up:
www.toptal.com/qKaO2b/worlds-...
Needing to hire technical resources for your project? Get the best:
www.toptal.com/qKaO2b/worlds-...
Contact form you can find at www.mackenziemackenzie.com/
Follow me on social media:
/ mackenziedataanalytics
/ seamacke
/ seamacke
/ seamacke
/ psmackenzie
Get Microsoft Office including Access:
click.linksynergy.com/fs-bin/...
Got a KZbin Channel? I use TubeBuddy, it is awesome. Give it a try:
www.tubebuddy.com/seanmackenz...
#msaccess #vba

Пікірлер: 10
@tomseed2000
@tomseed2000 Ай бұрын
Another awesome video, THANKS!!!
@seanmackenziedataengineering
@seanmackenziedataengineering Ай бұрын
You bet!
@peterhamer504
@peterhamer504 18 күн бұрын
Great little demo: so useful
@seanmackenziedataengineering
@seanmackenziedataengineering 15 күн бұрын
Glad it was helpful!
@simonmaersk
@simonmaersk Ай бұрын
Thanks! Great tip for beginners
@seanmackenziedataengineering
@seanmackenziedataengineering Ай бұрын
I remember seeing this on another db back in the day when I first started, and was like, "you can do that??" lol
@simonmaersk
@simonmaersk Ай бұрын
@@seanmackenziedataengineering Yeah haha. I wasn't aware either. But I frequently use the exact same trick on text boxes, so makes sense that it works on buttons as well!
@glennbyerly4279
@glennbyerly4279 7 сағат бұрын
Sean, functions typically are used to return a value of some kind. Why not just use a subroutine in a module and make it Public so it can be called from anywhere and provide the same result?
@tuffley2175
@tuffley2175 Ай бұрын
Handy way to skin a cat I like it PS If need to replace Access what is the next option would be (sql opt out)
@seanmackenziedataengineering
@seanmackenziedataengineering Ай бұрын
Many ways to do things indeed! If you need to replace something in text, you can use Replace kzbin.info/www/bejne/iGaQmK2Eppynndk
How to Use the After Delete Data Macro in MS Access
10:06
Sean MacKenzie Data Engineering
Рет қаралды 513
How to Use RecordsetClone in Microsoft Access
18:51
Sean MacKenzie Data Engineering
Рет қаралды 1,3 М.
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 19 МЛН
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 21 МЛН
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 335 М.
5 Best VBA Macros | VBA to Excel
1:00
VBAtoExcel
Рет қаралды 63 М.
Apache Kafka in 6 minutes
6:48
James Cutajar
Рет қаралды 965 М.
How To Make An Access Report Based On Form Inputs
10:21
LoeblComServices
Рет қаралды 813
How to Make Summary Queries in Microsoft Access
20:04
Sean MacKenzie Data Engineering
Рет қаралды 447
How to Construct an Excel Sheet using VBA Automation from Microsoft Access, Part 3
16:28
How to Use Macros in MS Access
22:49
Sean MacKenzie Data Engineering
Рет қаралды 7 М.
Neo4j (Graph Database) Crash Course
1:23:08
Laith Academy
Рет қаралды 207 М.
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31