Hi Morten, other than writing your own custom code, the only other suggestion I have is trying out qRules (http://www.qdabra.com/en/products/qRules.aspx), and, specifically, this document (http://www.infopathdev.com/files/folders/qrules/entry49403.aspx). Good luck!