well the reason I was asking was because I put this for each loop
tmpformfields = tmpformfields & siteID & ","
And for the last one I did not need the comma, but I solved that by using the following
tmpfieldlength = len(tmpformfields)
tmpfieldlength = tmpfieldlength - 1
tmpformfields = left(tmpformfields, tmpfieldlength)
Out side of the loop of course :)
---------------
Da_Stimulator has spoken