Not sure that you will like it but here it goes:
If DateField1 = DateField2 Then
msgbox "Dates are the same!"
Else
msgbox "Date are different!!!"
EndIf
You surely need to explain a little more what you are trying to do!
>hello Everybody !
>Can anyone tell me how to compare two given dates
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com