Is the object loaded (open) in the database and not in design mode ?
An AcObjectType: acTable, acQuery, acModule, acForm, acReport, acMacro, acDataAccessPage
The name of the object
DbObjectIsActive(acReport, "rptVisitReport")