ResultSet problem

I am trying to insert one table data to another table. But if the second table is empty it is giving a runtime error that "before start of resultset". How to rectify that? In my condition I gave to insert into the table if first table id is not equal to second table id and if the count(*) is equal to zero. But it is not inserting into the table. Where am I going wrong. Please help me.

uma

[411 byte] By [moola_uma@hotmail.com] at [2007-9-26 3:25:11]
# 1
call rs.moveToInsertRow();before inserting
shirish_wagh at 2007-6-29 11:45:47 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...