SilvaRonaldo
25-05-2010 18:27:38
Olá pessoal, estou com probleminha
Quero carregar o primeiro registro no DTPicker
assim o primeiro registro é 05/01/2010.
atualmente esta ficando 29/12/1899
O que eu devo fazer?
Private Sub CarregaRegistro()
'carrega os dados do primeiro registro
With wsCadastro
If Not IsEmpty(.Cells(indiceRegistro, colConsumoCAP)) Then
Me.txtReg.Text = .Cells(indiceRegistro, colRegistro).Value
Me.DTPicker1.Value = .Cells(indiceRegistro, colData).Value
Me.cboUsina.Text = .Cells(indiceRegistro, colUsinagem).Value
End If
End With
Call AtualizaRegistroCorrente
End Sub
Quero carregar o primeiro registro no DTPicker
assim o primeiro registro é 05/01/2010.
atualmente esta ficando 29/12/1899
O que eu devo fazer?
Private Sub CarregaRegistro()
'carrega os dados do primeiro registro
With wsCadastro
If Not IsEmpty(.Cells(indiceRegistro, colConsumoCAP)) Then
Me.txtReg.Text = .Cells(indiceRegistro, colRegistro).Value
Me.DTPicker1.Value = .Cells(indiceRegistro, colData).Value
Me.cboUsina.Text = .Cells(indiceRegistro, colUsinagem).Value
End If
End With
Call AtualizaRegistroCorrente
End Sub