I could be wrong, but I would think that if you're getting #name then your "Active" control is not a checkbox. If it's a text field, Access wouldn't know what to put in it if you only had a True/False value.
I'd try something like
IF (DLookup("[Active]","tablename","criteria) = True Then...