I have a snipped of VBA that I'm a little confused over
Code:
Me.TxtToDo = DCount("action", "tbl_To Do", "who like '" & GetUserName() & "*'" & " and x=" & 0 & " and [date] <#" & Date & "#") & " overdue" & " | " & _DCount("action", "tbl_To Do", "who like '" & GetUserName() & "*'" & " and x=" & 0 & " and [date] =#" & Date & "#") & " due today" & " | " & DCount( _
"action", "tbl_To Do", "who like '" & GetUserName() & "*'" & " and x=" & 0 & " and [date] >#" & Date & "#") & " future tasks"
I'm only looking for the overdue function, so I'm pretty sure that part is
Code:
DCount("action", "tbl_To Do", "who like '" & GetUserName() & "*'" & " and x=" & 0 & " and [date] <#" & Date & "#") & " overdue
. I looked up the documentation for the DCount function, so I know that it's pulling data from the tbh_To Do, however I'm really confused on the third parameter. I'm not sure what the strings are doing, and the "#", so I was wondering if someone could help me figure out what this function is doing. Thanks
(The reason I'm looking at the overdue part is because it is displaying more overdue tasks than there actually is)