C
CaptR
I have a database that calculates the total times an object appears in a
field on a form. I can get it to calculate the last 6 months or the year
from the calendar but I cannot change it to calculate a fiscal year. This is
in a function, not a query.
Public Function gettxt6MET(UserID As Variant) As Integer
Dim strWhere As String
If Not IsNull(UserID) Then
strWhere = "UserID = " & UserID & " AND inputText = 'Excused Tardy' AND
Inputdate > #" & Format(Date - 183, "mm/dd/yyyy") & "#"
gettxt6MET = DCount("UserID", "tblInput", strWhere)
End If
End Function
Is there a way to change this to calculate a fiscal year 1 April to 31 March
Thanks
field on a form. I can get it to calculate the last 6 months or the year
from the calendar but I cannot change it to calculate a fiscal year. This is
in a function, not a query.
Public Function gettxt6MET(UserID As Variant) As Integer
Dim strWhere As String
If Not IsNull(UserID) Then
strWhere = "UserID = " & UserID & " AND inputText = 'Excused Tardy' AND
Inputdate > #" & Format(Date - 183, "mm/dd/yyyy") & "#"
gettxt6MET = DCount("UserID", "tblInput", strWhere)
End If
End Function
Is there a way to change this to calculate a fiscal year 1 April to 31 March
Thanks