I do not know where the problem is, it does not give me any kind of exception, it just runs and goes on, but it does not insert the data in access.
static OleDbConnection con = new OleDbConnection(@"Provider = Microsoft.ACE.OLEDB.12.0; Data Source="+AppDomain.CurrentDomain.BaseDirectory+"Leaderboard.accdb");
static OleDbCommand comando;
public static void highscore(int puntuacion, String nombre)
{
try {
String query;
con.Open();
query = "Insert into Leaderboard(Nick,Puntuacion) Values('"+nombre+"','"+puntuacion+"')";
comando.CommandText = query;
comando.ExecuteNonQuery();
con.Close();
}catch(Exception e)
{
Auxiliar.log(e.Message);
}
}