|I haven’t really talked about Microsoft Access database VBA (Visual Basic for Applications) before as this is not for beginners!|
However, I do get asked about how to program with Microsoft Access using VBA and in some cases macros too. I intend to do two things in the near future; write an eBook for beginners and create a dedicated section for Access VBA – keep an eye out!
In the meantime, the following article will give you some ideas on how and when to use VBA
Microsoft Access VBA Programming
3 Ways How You Can Automate Your Access Application
You have been using Access for some time now and are considering utilizing the power of Access more effectively; you can add VBA (Visual Basic for Applications) code to your databases to automate your applications.
VBA allows you to develop highly customized desktop applications. It includes a suite of programming tools for rapid development. Developers can build robust programs with no other expense than time. There are many ways you can automate your Access application by using code.
Here are 3 ways how you can systematically improve your programs:
1. Retrieving Data
Instead of always adding a new table or a new query to retrieve data, your program can create the tables and queries temporarily and delete them afterwards which keeps the number of objects in your database restricted.
2. Inserting Data in Forms
Consistent data in a database is of vital importance to the reliability of the information to make decisions. So you will prevent the user from putting in data directly into the tables, only through forms. A user opens a form and enters new data. Upon completion of the entry the application then takes over. It will perform a thorough test of the correctness of the information, defined by certain criteria, before it is inserted. In case of a mistake it will prevent inserting the wrong information.
3. Creating Reports
Creating a lot of different reports manually will cost you considerable time that kills your productivity. By using code however, you only have to create a few reports in which the content and the formats adapts automatically according to the users’ needs.
Automation allows you to maintain and to update databases relatively easy. It will increase the amount of time available to produce. If you want to integrate code however, you have to understand how the various components of VBA work together.
If you want to acquire the necessary programming skills there are of lot of free courses and sources on the internet. A point of reference could be the Microsoft Developer Network (http://msdn.microsoft.com).
Tom Vanhasselt is a MS Access developer with over 15 years of experience.
Article Source: http://ezinearticles.com/expert/Tom_Vanhasselt/523456
Microsoft Access Database – My comments
VBA is not only available to Microsoft Access but to the other Microsoft Office applications too and no matter which product and level you have, they all follow the same underlying principles meaning you still need to know the VBA structures before specialising with a particular application (or more accurately, the library).
Using Microsoft Access VBA is very handy for adding the bells and whistles to your application and shouldn’t always be your first choice approach which is why I haven’t really talked about topic in any detail as I believe users should know Microsoft Access database functionality inside and out first.
I used VBA code with Access functionality showing the balance of how they work together in my offer eBook & product Login User Form Security application and you don’t need to know VBA in this instance as I explain how and where this is applied.