How to Use 1D and 2D Arrays in MS Access VBA - Introduction

  Рет қаралды 3,518

Sean MacKenzie Data Engineering

Sean MacKenzie Data Engineering

Күн бұрын

Programming for speed is usually a consideration, especially when you're developing complex applications, or application that will reside on less than ideal infrastructure. Slow networks, hard disk issues, slow user computers, and other factors often impact the user experience, resulting in horribly slow reports, drop-down loading and selection issues, and generally unhappy users. Arrays can be used in many of these cases to speed things up immensely, when applied correctly. Watch an introduction to arrays in this episode before we do more in-depth techniques in upcoming episodes.
Related Videos:
How to Use 1D and 2D Arrays in MS Access VBA - Introduction
You are watching this video now!
How to Sort Arrays in MS Access VBA Using Insertion Sort
• How to Sort Arrays in ...
Interested in transforming your career or finding your next gig?
system.billzon...
Want my team to do a project for you? Let's get to it!
system.billzon...
Want to get access to premium content made just for you and have a chat with me? Find me on Patreon :
/ mackenziedataengineering
Demo of my BZ RDP Cloaker:
www.patreon.co...
Want to work with me 1:1? Contact me today and book your free 20 min consultation!
Contact form you can find at www.mackenziema...
Follow me on social media:
/ mackenziedataanalytics
/ seamacke
/ seamacke
/ seamacke
/ psmackenzie
Get Microsoft Office including Access:
click.linksyne...
Got a KZbin Channel? I use TubeBuddy, it is awesome. Give it a try:
www.tubebuddy....
#msaccess #vba
• How to Use 1D and 2D A...

Пікірлер: 30
@miles6875
@miles6875 Жыл бұрын
Sean your channel is incredibly valuable. Thank you!!
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Thanks for watching! cheers
@interestingamerican3100
@interestingamerican3100 2 жыл бұрын
Okay, half way through......MY F***ING GAWD THIS IS WHAT I NEEDED!!! F***ING EPIC DUDE!!!
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Awesome!! Stay tuned for more!
@mehdibakhtiari300
@mehdibakhtiari300 Ай бұрын
Mr. MacKenzie, did you , sir, make a follow-up video /episode for the array? I need to update 5 reports for 125 subsidiaries (from a table list) everyday.
@seanmackenziedataengineering
@seanmackenziedataengineering Ай бұрын
This is a good idea - I have an idea for a good solution that I've been thinking about for some time. It is on my list!
@interestingamerican3100
@interestingamerican3100 2 жыл бұрын
WOW, quality material! Commenting for algorithm. Subscribed and ringed the bell.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Welcome aboard!
@dbdata9836
@dbdata9836 2 жыл бұрын
10/10
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
More to come!
@khabathawrami
@khabathawrami 2 жыл бұрын
Thank you man !
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Welcome!
@artistryartistry7239
@artistryartistry7239 2 жыл бұрын
Truly awesome material!!!! Subscribed. Whenever I try to use a dynamic array without declaring how many items it holds -- arrVal (1 to 10) I always get a subscript out of range error. Any idea?
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
VBA is 0-based, so you will count 0 to 9 for 10 items when you Dim arrVal(10) it seems counter intuitive, but it works!
@artistryartistry7239
@artistryartistry7239 2 жыл бұрын
@@seanmackenziedataengineering Thanks for the reply! If I don't know how big the array is going to be, I would just declare arrVal() creating a variant, correct? But this never works. I always get an error subscript out of range.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
It is better to give a size to start: Sub arrTest() Dim arrVal(1) arrVal(0) = "ABC" arrVal(1) = "DEF" Debug.Print arrVal(0) Debug.Print arrVal(1) End Sub You can also resize the array if you want it to grow (and keep the original contents): ReDim Preserve arrVal(3) arrVal(2) = "GHI" arrVal(3) = "JKL" etc.
@artistryartistry7239
@artistryartistry7239 2 жыл бұрын
@@seanmackenziedataengineering You're awesome Sean. Thanks for being generous with your time :)
@muhammadtareq3124
@muhammadtareq3124 9 ай бұрын
Is there a function to sum the elements of array?
@seanmackenziedataengineering
@seanmackenziedataengineering 9 ай бұрын
No, just loop it and add 'em up! 🛠
@muhammadtareq3124
@muhammadtareq3124 9 ай бұрын
@@seanmackenziedataengineering Thank you so much
@dbdata9836
@dbdata9836 2 жыл бұрын
thanks
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
You're welcome!
@eyribalt99
@eyribalt99 2 жыл бұрын
Always appreciate your vids but I find the music within the intro very distracting.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Noted! Thanks for the feedback.
@dbdata9836
@dbdata9836 2 жыл бұрын
1
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Nice!
@dbdata9836
@dbdata9836 2 жыл бұрын
well
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
👍
@dbdata9836
@dbdata9836 2 жыл бұрын
1
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Cheers,
How to Sort Arrays in MS Access VBA Using Insertion Sort
15:57
Sean MacKenzie Data Engineering
Рет қаралды 1,4 М.
10 Years of VBA Array Knowledge in 40 Mins
41:57
Excel Macro Mastery
Рет қаралды 20 М.
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 18 МЛН
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 26 МЛН
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,6 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 9 МЛН
WHM cPanel - 03 Manage Fitur WHM & cPanel, LENGKAP
52:08
AABC Software Channel
Рет қаралды 2
How to Create and Modify QueryDefs Programmatically in your MS Access Database
12:03
Sean MacKenzie Data Engineering
Рет қаралды 4,8 М.
For Each Next Loops in Microsoft Access VBA. Loop Thru Controls on a Form.
15:09
How to Open a RecordSet in Access VBA and Loop Through the Records
12:45
Sean MacKenzie Data Engineering
Рет қаралды 26 М.
Watch these 28 minutes if you want to become an Advanced VBA user...
29:01
Excel Macro Mastery
Рет қаралды 54 М.
Mastering Static Arrays in Microsoft Access VBA with a Dice Roll Simulator
14:56
Computer Learning Zone
Рет қаралды 2,2 М.
How to Cycle Through Many TableDefs to Rename or Delete Many Tables in MS Access
17:38
Sean MacKenzie Data Engineering
Рет қаралды 1,5 М.
VBA Arrays Explained in 3 Minutes
3:44
Excel Macro Mastery
Рет қаралды 34 М.
How to Use the After Delete Data Macro in MS Access
10:06
Sean MacKenzie Data Engineering
Рет қаралды 774
How to Run Scripts and Open Other Applications from MS Access Using VBA
10:35
Sean MacKenzie Data Engineering
Рет қаралды 6 М.
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 18 МЛН