Yes, the Command property is ok and strNewStatus and intHolydayNr are valid values. In 99% of the Query's it works. But when a couple of persons will send Query's to the SQL-Server, this error comes more often. Also I have try/catch in my script which catch any other error, but this error isn't caught. Infopath began to flicker and ...