Visual Basic - AYUDA CON FECHAS!!

Life is soft - evento anual de software empresarial
 
Vista:

AYUDA CON FECHAS!!

Publicado por SANDY (7 intervenciones) el 19/04/2007 19:13:13
HOLA! ALGUIEN ME PUEDE PROPORCIONAR EL CODIGO PARA HACER COMPARACION ENTRE DOS CAMPOS DE TIPO FECHA.... TENGO UNA B.D. EN ACCESS Y UN SISTEMA EN VISUAL BASIC 6, EN MI SISTEMA QUIERO HACER UNA COMPARACION PARA SABER CUANDO LA FECHA1 ES MAYOR QUE LA FECHA2 Y VICEBERSA. MI PRIMER FECHA ESTA EN UN TEXTBOX Y LA SEGUNDA ESTA EN UN DTPicker.

ESPERO QUE ALGUIEN ME PUEDA AYUDAR, SE LOS AGRADECERE MUCHISIMO... GRACIAS...BYE
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

RE:AYUDA CON FECHAS!!

Publicado por Mario (107 intervenciones) el 19/04/2007 22:09:34
Prueba con
If DateDiff("d", format(text1,"dd/mm/yyyy"), DTPicker) < 1 Then
MsgBox "El textbox es menor"
Else
MsgBox "El DTPicker es mayot"
End If
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar