[ Team LiB ] Previous Section Next Section

Running a Custom Function

Once you've completed a custom function, you can use it in any Access query, report, or form. The easiest way to access the function is through the Expression Builder. After you open the Expression Builder, you can access the custom function using the Functions folder.

Run a Custom Function

graphics/1_icon.jpg

Open Expression Builder from any query, report, or form.

graphics/2_icon.jpg

Double-click the Functions folder.

graphics/3_icon.jpg

Double-click the name of the project containing your custom function (usually the name of the current database).

graphics/4_icon.jpg

Click the module containing the custom function.

graphics/5_icon.jpg

Double-click the name of the custom function.

graphics/6_icon.jpg

Edit the function, replacing the variable names within the parentheses with the appropriate field names or constants.

graphics/7_icon.jpg

Click OK.

graphics/8_icon.jpg

Test your query, form, or report to verify the values returned by the custom function.

graphics/14inf08.jpg

Did You Know?

You can save a module. Save changes to your module before using a customized function. Otherwise, the function will not appear in the Expression Builder.


    [ Team LiB ] Previous Section Next Section