I want to update the UsageTime
when the time ticks per minute, couldn't get the right code.
Private Sub LBLTime_TextChanged(sender As Object, e As EventArgs) Handles LBLTime.TextChanged
con.ConnectionString = My.Settings.Finals_DBConnectionString
cmd.Connection = con
con.Close()
con.Open()
cmd.CommandText = "update tbl_transaction set usagetime = @ut, remainingtime = @rt"
cmd.Parameters.Clear()
cmd.Parameters.AddWithValue("ut", +1)
cmd.Parameters.AddWithValue("rt", -1)
cmd.Parameters cmd.ExecuteNonQuery()
End With
End Sub
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…