Leandro Bueno
não registrado
|
|
Postada em 31/05/2005 09:42 hs
Pessoal gostaria de fazer o seguinte: Em uma text tenho a data. Como faço para que quando a data chegar por exemplo em: mês 12 de 2005 abrir uma msgbox e dizer
|
|
|
|
|
Postada em 31/05/2005 10:14 hs
para ficar testando um valor em um campo, você pode usar um Timer Private Sub Timer1_Timer() On Error Resume Next If Text1.Text <> "" Then If Month(Text1.Text) = "12" Then If Year(Text1.Text) = "2005" Then MsgBox "Ok" End If End If End If End Sub
|
|
|
ninh@
|
SÃO PAULO SP - BRASIL
|
|
Postada em 31/05/2005 15:56 hs
ou pode ser mais resumido assim Private Sub Timer1_Timer() On Error Resume Next If Text1.Text <> "" Then If format(Text1,"m/yyyy") = "12/2005" Then MsgBox "Ok" End If End If End Sub
Tem alguem me olhando..... é vc?
|
|
|