Soldato
- Joined
- 5 Dec 2003
- Posts
- 2,716
- Location
- Glasgow
Hey I am trying to follow this tutorial here http://wiki.netbeans.org/AccessMssql to connect to a MS Access database with NetBeans but the code is not working, giving me a number of errors on compile that I don't have a great understanding of:
These are the lines giving errors, the last two are cannot find symbol.
Can anyone advise me how to do this successfully in the latest NetBeans?
Code:
52: statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
Error: incompatible types, found: java.sql.Statement, required: java.beans.Statement
55: resultSet = statement.executeQuery(query);
63: options[i] = new Option(resultSet.getString("NAME"), resultSet.getString("NAME"));
These are the lines giving errors, the last two are cannot find symbol.
Can anyone advise me how to do this successfully in the latest NetBeans?