Este código de programación en Visual Basic permite eliminar registros de una base de datos. Primero verifica que el RFC ingresado coincida con uno existente, luego muestra un mensaje de confirmación para eliminar los datos. Si se confirma, elimina el registro actual y muestra un mensaje de que fue eliminado con éxito. De lo contrario, muestra que no se eliminó.
PREVENCION DELITOS RELACIONADOS COM INT.pptxjohnsegura13
Concientizar y sensibilizar a los funcionarios, sobre la importancia de promover la seguridad en sus operaciones de comercio internacional, mediante la unificación de criterios relacionados con la trazabilidad de sus operaciones.
Anna Lucia Alfaro Dardón, Harvard MPA/ID.
Opportunities, constraints and challenges for the development of the small and medium enterprise (SME) sector in Central America, with an analytical study of the SME sector in Nicaragua. - focused on the current supply and demand gap for credit and financial services.
Anna Lucía Alfaro Dardón
Dr. Ivan Alfaro
SMEs as Backbone of the Economies, INCAE Business Review 2010
botón de eliminar
1. COLEGIO DE EDUCACION PROFESINAL TECNICA DEL ESTADO
DE TLAXCALA
Plantel Conalep Zacualpan
Nombre del Alumno:
Omar Fredy Cuapio Zainos
Nombre del Profesor:
Ing. Agustín Hernández Delgado
Modulo:
Elaboración y Mantenimiento de Sistemas de Información
Grupo: 606
2. BOTON DE ELIMINAR
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim response As MsgBoxResult
Dim MSG As String
Dim TITULO As String
Dim ESTILO As MsgBoxStyle
Dim registroactual As DataRowView
ESTILO = MsgBoxStyle.YesNo
TITULO = "Borrar datos"
MSG = " deseas eliminar los datos"
Dim a As String
Dim b As String
Dim res As Boolean
Dim bandera As Boolean
bandera = True
Dim SI As Integer
SI = SI
Dim tam As Integer
tam = PracticasBindingSource.Count()
PracticasBindingSource.MoveFirst()
res = False
a = RTrim(TextBox1.Text)
b = RTrim(RFCTextBox.Text)
Do
res = b Like a
If (res = True) Then
bandera = False
Else
PracticasBindingSource.MoveNext()
b = RTrim(RFCTextBox.Text)
SI += 1
End If
Loop While (bandera = True And SI <= tam)
If (bandera = True) Then
RFCTextBox.Visible = False
Nombre_de_la_empresaTextBox.Visible = False
DirecionTextBox.Visible = False
LocalidadTextBox.Visible = False
ProvinciaTextBox.Visible = False
Codigo_postalTextBox.Visible = False
TelefonoTextBox.Visible = False
Pagina_webTextBox.Visible = False
TextBox1.Text = ""
TextBox1.Focus()
MsgBox("no existen datos")
Else
RFCTextBox.Visible = True
Nombre_de_la_empresaTextBox.Visible = True
DirecionTextBox.Visible = True
LocalidadTextBox.Visible = True
ProvinciaTextBox.Visible = True
Codigo_postalTextBox.Visible = True
TelefonoTextBox.Visible = True