Visual Basic - validar datos

Life is soft - evento anual de software empresarial
 
Vista:
sin imagen de perfil
Val: 3
Ha aumentado su posición en 6 puestos en Visual Basic (en relación al último mes)
Gráfica de Visual Basic

validar datos

Publicado por JOSE ANGEL (3 intervenciones) el 01/04/2019 23:37:52
HOLA, LES PIDO DE SU APOYO, QUIERO VALIDAR UN REGISTRO QUE LO MANDO A LLAMAR DESDE UNA PESTAÑA LLAMADA POR CORREGIR, PERO AL HACERLO ME ELIMINA EL REGISTRO.
ESTE ES EL CODIGO.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Private Sub PorCorregirToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles PorCorregirToolStripMenuItem.Click
    Dim tipohistoria As String
    tipohistoria = sender.ToString
    Try
        PictureBox1.Image = Image.FromFile("\\contadorcosmos\SCIV Acabados\CONTROL ACABADOS\Restore_IM0017493139\Imagenes de Productos\" & ProyPendiente.Text & ".jpg")
    Catch ex As Exception : End Try
    Proyecto.Visible = False : Label3.Visible = False
    ErrorProvider1.Clear()
 
    ValidacionFC.Visible = False : ValidacionG.Visible = False
    ValidacionHorneo.Visible = False
    ValidacionObs.Visible = False
    ValidacionRC.Visible = False
    Fecha.Visible = True
    ComboFecha.Visible = False
 
    ProyPendiente.Items.Clear()
    ProyPendiente.Text = Nothing
    rst.Open("Select count(moldura) as total from hcnp where  estatus = 'Por Corregir' ", Conex)
    If Not rst.EOF Then
        ErrorProvider1.SetError(ProyPendiente, "Hay " & rst("total").Value & " historias por validar")
        rst.Close()
        rst.Open("Select proyecto from hcnp  where estatus= '" & tipohistoria & "' order by (fecha) desc", Conex)
        Do While Not rst.EOF
            ProyPendiente.Items.Add(rst("proyecto").Value)
            rst.MoveNext()
        Loop
    Else
        ErrorProvider1.Clear()
    End If
    rst.Close()
    Label1.Text = "Historias " & tipohistoria
End Sub
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder