thank alex, error now is gone. but overall the script result is not what I wanted. so I try to create another, but still get stuck anyway

may i ask u another thing? what is "sql statement" in order to retrieve certain fields from more than 1 table? (for instance, field1 from table1 and field2 from table2).
thank in advance alex or anybody who gives me help, very appreciated.