Basically no. IIF statements cannot affect object properties by themselves. What you suggest is exactly what we're trying to achieve but in the proper (and really, quite simple) method. You are making it harder than it needs to be, so you must not be digesting the posted answers you've been given. As instructed by me and ssanfu, put ALL of the code in the form module. Make sure all of it is the only version you have. At this point, it's not 100% clear to me where you have the third part:
"And I have this code in a Module BUT how where do I put it on the form?"
What module? Not the form module? All that you've ever needed to do is have these three parts together - one after the other - in the same place - in the form module and no where else. I tested it before posting, so I know it works if it's set up right.