This is just a guess since you didn't post the type of error your are getting. This code doesn't look right: //1st File public static Game searchRecord(String search) throws SQLException{ String query = "SELECT* " + "FROM gamefields WHERE SKU = '" + search + "' ORDER BY SKU ASC"; Game lastGame = new Game(gamefields.getString(1), gamefields.getString(2), gamefields.getString(3), gamefields.getString(4), gamefields.getString(5), gamefields.getString(6), gamefields.getString(7), ...