title: Insert data to MS Access DB through JDBC-ODBC
body: <p>I tried to insert some data from java to my database (ms.access) but when I click button nothing add to database. here is the code:</p>
  
  <pre><code>private void EmpButtonMouseClicked(java.awt.event.MouseEvent evt) {        
      String name,sex,email,username,password;
      name = tfName.getText();
      sex=(String) cbSex.getSelectedItem();
      email=tfEmail.getText();
      username=tfUser.getText();
  
      try{
          String url;
          url = "jdbc:odbc:mydata";
          Connection conn = DriverManager.getConnection(url,"",""); 
          Statement stm = conn.createStatement();
          stm.executeUpdate("INSERT INTO EmployeeLogin " + "VALUES (name, email, sex, username)");
          conn.close();
      }catch (SQLException sqlException){} 
  } 
  </code></pre>
  
  <p>what wrong with that code?</p>