Here's the references and a shot of the first instance of the error. I'm baffled because everything looks to be right. This is from a clean copy of the 4.0.7 database with zero editing. If I REM out the affected lines in this procedure, then the next procedure using standard properties reports the error.
File sent to support.