"Object not accessible. Invalid use of an object" after executeUpdate

When I run

				stSql = "INSERT INTO `labels` (`NoSAP`) VALUES ("+SAPnr+")"
			oResult = oSQL_Command.executeUpdate(stSql)

on a mariadb database a record will be inserted with the correct value stored in variable SAPnr, but right after that I receive an error “Object not accessible. Invalid use of an object”

What is going wrong??

It is solved I was running this query in result loop from another query… just had to rename oResult into oResult2…

In the future, you can post this as an answer so that it can be marked as accepted.