Skip to content
KnowledgeCity

Microsoft Access 2021 Advanced: Writing Custom Functions

Learn how to write custom functions and debug VBA code
Preview the first lesson free — get full access to all 3 lessons.
Course: On-Demand
Advanced Provider John Varan  3 Lessons ·  14m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

The lessons in this course expand upon and add to your knowledge of using the Visual Basic for Applications editor by explaining debugging, which is a critical skill for anyone writing code, as it is how you troubleshoot, identify, test, and correct errors in your code. There are many common methods for debugging code, such as setting and using breakpoints or stepping through your code line by line, that can help you ensure your code is as error-free as possible. By knowing how to use custom functions and understanding the pros and cons of writing your own functions for use in queries, validation rules, calculated values, and conditional formatting rules, you will be able to create more intuitive database applications.

In this course, you will learn how to debug VBA code using the Visual Basic for Applications editor. We will also discuss how to write your own custom function which can be used in queries, validation rules, calculated values, and conditional formatting rules. By the end of this course, you will be able to integrate custom functions into a Microsoft Access database application by integrating it with an existing query or report.

What You'll Learn

  • Debug VBA code using the Visual Basic for Applications editor
  • Apply best practices for debugging, including setting breakpoints and stepping through code line by line
  • Write custom functions for use in queries, validation rules, calculated values, and conditional formatting rules
  • Evaluate the pros and cons of writing your own custom functions
  • Integrate custom functions into a Microsoft Access database application using an existing query or report

Key Takeaways

  • Debugging is a critical skill for writing code, used to troubleshoot, identify, test, and correct errors.
  • Common debugging methods include setting and using breakpoints or stepping through code line by line to keep it as error-free as possible.
  • Custom functions can be used in queries, validation rules, calculated values, and conditional formatting rules to create more intuitive database applications.
  • Understanding the pros and cons of writing your own functions helps you decide when custom code is appropriate.
  • By the end of the course you can integrate a custom function into an existing query or report in a Microsoft Access database application.

Frequently Asked Questions

What does this course cover?

It covers debugging VBA code in the Visual Basic for Applications editor and writing your own custom functions for use in queries, validation rules, calculated values, and conditional formatting rules, then integrating those custom functions into a Microsoft Access database application.

What will I be able to do by the end of the course?

You will be able to debug VBA code, write custom functions, and integrate a custom function into an existing query or report within a Microsoft Access database application.

What topics are taught in the lessons?

The lessons cover what a custom function is, the user interface for writing a custom function, and creating a custom function.

What skills does this course build?

It builds skills in Microsoft Access, Access query languages, custom functions, and Visual Basic / Visual Basic for Applications (VBA).

Is this an advanced-level course?

Yes. It is a Microsoft Access 2021 Advanced course that expands upon and adds to existing knowledge of using the Visual Basic for Applications editor.