There is still a problem with this I tried the text of field tField but no luck put "name1,phone,child,adult,total,credit,paymenttype,address,address1,addre ss2,email,seatNo,ticket,showID" into tFieldNames repeat for each item tField in tFieldNames put "'" & cleanSQL(field tField) & "'" & "," after tRowData end repeat Thanks Liam Lambert liamlambert at mac.com IRELAND