- Local time
- Tomorrow, 10:08
- Joined
- Jan 20, 2009
- Messages
- 12,887
Please give me your final decision.
From the first response:
If Date > #12/31/2019# Then
The # is the date delimiter in Access.
Please give me your final decision.
If Date > #12/31/2019# Then
Kundan
You finally came back....
I agree. My first answer in post #2 is guaranteed to work.
Please tell me what changes need to be made to the above code in order to achieve the goal?
? date = #12/24/2019#
True
? format(date,"dd/mm/yyyy") = #12/23/2019#
False
? date = #12/23/2019#
False
Both are false because today isn't 23 Dec!!!
PHP:?format(Date,"mm/dd/yyyy")=#12/24/2019# True ?Date=#12/24/2019# True
Yes I realise that, but Kundan posted that today?
If Date > #12/31/2019# Then
MsgBox " HAPPY NEW YEAR ", vbExclamation, "Greetings:"
End If
If Date >= #1/1/2020# Then
MsgBox " HAPPY NEW YEAR ", vbExclamation, "Greetings:"
End If