ya it was the field names. The code Joacim Andersson posted worked like a charm.