private void tbNuevo_Click(object sender, EventArgs e)
{
... connections up in the Load....
botones("NUEVO");
limpiar();
txtNombre.Focus();
oCC = new OleDbCommandBuilder(dtc);
DataSet dst= new DataSet();
dtc.Fill(dst, "contador");
iPosact = dst.Tables["contador"].Rows.Count - 1;
DataRow dtr = new DataRow();
dtr = dst.Rows.[iPosact]; //error in this line
vUltimo = dtr["regnum"]; // error in this line
}
I need to fill the vUltimo with the value of REGNUM in the last record of CONTADOR table. Can help me , please?