A Code Enforcement Officer, if appointed pursuant to section 2-165, shall be authorized to conduct investigations and execute enforcement actions when there is alleged to be a violation of any provision of this chapter.