what is a custom function (data) used for
Custom functions can be used in Access reports in the same way as in forms, by creating an unbound text box in the design view of the report and entering the function expression as you would on a form. You can also make use of your custom functions in any VBA procedures you write.