Error Expression Expected

I would use the strategy outlined in this similar topic.