Error "Codeunit 50007 does not exist."

Error “Codeunit 50007 does not exist.” is showing while I was creating a code unit variable for a newly created CU 50009. Why this happening?

You are adding a variable in Codeunit 50009? or adding variable of codeunit 50009 in someother object?

adding variable of codeunit 50009 in Purchase header form.

Compile the form…it will point to error location…check somewhere else have a variable with codeunit 50007…

try compiling codeunit 50009 also

Thank you…You are absolutely right…

Welcome [:)]