By Richard Rost 47 days ago
Using Static Variables for Code Control in MS Access
In this Microsoft Access tutorial, I'm going to teach you how to use a static variable to remember what happened the last time a particular procedure ran. Static variables have some benefits over other types of persistent data types like global variables, hidden form fields, or TempVars.
Oscar from Burien, Washington (a Platinum Member) asks: I just watched your "Select Text on Click" video, and it works great, thank you. However, if I do want to edit some text in the middle of that field, is there a way that I can have it so the code doesn't run the second time you click on that field?
There is no extended cut, but here is the database download:
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to register on my YouTube Find User page so I can set up your account here on my web site. If you're not a member, Join Today!
TechHelp Access, static variables, selective code execution, Access VBA, procedure calls, Select Text on Click, global vs static variables, TempVars, Access form customization, debugging in VBA, VBA scope.
Subscribe to Static Variables
Get notifications when this page is updated