this is the code that sets up connection and executes the SQL
public void get97Result( )
{
try // establish the Connection
{
Connection connec = DriverManager.getConnection( "jdbc

dbc:EwanProject" ) ;
String seat = "RAYLEIGH"; // just hard coded this in to test
PreparedStatement get97 = connec.prepareStatement("SELECT * " +
"FROM 97VOTE " +
"WHERE SEAT LIKE ? "

;
get97.setString(1,seat);
res = get97.executeQuery( );
this.first( );
extractValues( res ); // this func will extract the values
connec.close() ;
}
this is the function that when is used i get the SQL error, invalid cursor
public void extractValues( ResultSet res ) throws SQLException
{
String values[ ] = new String[4];
for ( int i = 0; i < 4; i++)
{
values
= res.getString( i + 1);
}
}
hope it make some sort of sense
thanks
ewan