Custom Button Function

Custom Button Function

Hi There

I have created a Stateless Form with a Custom Button, in order to copy records from one form to another.

My Script is:

for each x in Project_Info[ID!=0]
{
insert into Install_Project
[
<Job_No>=x.<Job_Number>;
<Project_Name>=x.<Customer>;
];
}

I however get an error on Line 1 - Improper Statement 

Please assist in explaining why this error is being received?

Thanks
Kevin