12-05-2010, 03:57 PM
Code:
a= captured value from script
b= captured value from script
m=MonthName(month(date))
n=Day(date)
If a=m Then
msgbox "Current month match"
else
msgbox "Current month not match"
End If
If b=n Then
msgbox "Current Date match"
else
msgbox "Current Date not a match"
End If
Here a=m and b=n both condition satisfy, still it display "Current Date not a match" for second condition.