On the click of a button I want to write stuff onto a note pad and open this up so I can copy and paste it to another program...

It's a SQL syntax for every item in a listbox...

So for each item in my list box as string "items" I want to print this with the right items in it's right place... and a line between how can I do this??

Code:
INSERT INTO `travel_photos` ( `id` , `photoname` , `trip_id` , `takenby` , `location` , `details` , `private` , `degrees` , `hits` , `date` , `front` ) VALUES ('', 'items', '11', '', '', '', '0', '0', '0', '0000-00-00', '');

The looping part I can do it's just writing to a text file and opening it up... I don't need it saved anywhere