Dear all,
How can I get the maximum "Greatest" Date except the Current Today Date.
mean not consider the Today System Date.
VBA:
Note:
[Datee] : is the Field Name
"DailyAccount" : is Table Name
RecentLastDate_txt : is TextBox Control
But not work, what I want.
How can I get the maximum "Greatest" Date except the Current Today Date.
mean not consider the Today System Date.
VBA:
Code:
Dim LastDate, TodayDate
TodayDate = Date 'Current Today Date
LastDate = DMAX("[Datee]","DailyAccount","[Datee] <>" & "#" & TodayDate & "#")
Me.RecentLastDate_txt.value = LastDate
Note:
[Datee] : is the Field Name
"DailyAccount" : is Table Name
RecentLastDate_txt : is TextBox Control
But not work, what I want.
Last edited: