How to: Compile the Code in a Codeunit
To compile the code in a codeunit, use the following procedure.
To compile the code in a codeunit
On the Tools menu, choose Compile.
If any errors are found in your code, you receive an error message. Correct the errors and compile the code again.