Hi i am trying to use an Access data bases within java and i am having a spot of trouble. below i have set up a connection to my database.

```
public class DBAccess {
DBAccess() {
    try {
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=CFPDB.mdb;";
        Connection conn = DriverManager.getConnection(database, "", "");
        Statement s = conn.createStatement();
    }
    catch(Exception ex) {
        ex.printStackTrace();
    }
}
}

```

I need to access the 's' variable form with my gui class in order to check a password:

```
else if(event.getSource() == loginSubmitButton){
        DBAccess loginCheck;
        String selFromTable = "SELECT PASSWORD FROM USERS WHERE USERNAME = '" + loginUsername.getText() + "'; ";
        loginCheck.s.execute(selFromTable);
        ResultSet retrievedPassword = loginCheck.s.getResultSet();
        String password = retrievedPassword.getString(1);
        String password_entered = loginPassword.getText();
    }

```

But my compiler says it can't find symbol - variable 's'.
Class DBAccess is in a separate file to my gui, but are both in the same package. any help would be great. :)