No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
In my APP the principal form open a second form (MothPayment) where the user pay a moth of the student. Well, made the payment, the form close and return to the principal form. The problem is that textbox fields like student balance, paid month , etc only refresh if the … |
|
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(); [B]dtr = dst.Rows.[iPosact]; //error in this line vUltimo = dtr["regnum"]; // error in this … |
|
Part of the void code: [CODE]string sql = "SELECT SUM(monto) As TOTALM from meses where status='ACTIVO' and mesactual= '" + vMes.ToString() + "' and ano= '" + vAno.ToString() + "'"; dtm = new OleDbDataAdapter("Select * from meses order by nombre", con); oCM = new OleDbCommandBuilder(dtm); OleDbCommand cmd = new OleDbCommand(sql, … |
|
I'm using Visual Studio c# (spanish) The code: [CODE]cmd.CommandText = "UPDATE cursos SET saldo = saldo - '" + cantidad.ToString() + "' where id = '" + vID + "' ";[/CODE] vID is a string variable. The problem is here: Don't work [B]where id = '" + vID + "'[/B] … |