T
Thomy5
I'm trying to total a field in a table called tblAbsense for an employeeID.
the field i'm totaling is called Under31 and i only want to total the records
before a given date. the employeeID and the given date are displayed in a
forms current record opened and the total is put in a Dim in some VBA code.
It looks like this:
Dim intUnder31 As Integer
intUnder31 = DSum("[Under31]", "tblAbsense", "[EmployeeID] = '" & Me.
EmployeeID & "' AND_ [Start_Date_Of_Absense] < ' " & Me.Start_Date_of_Absense
& " ' ")
It keeps throwing up an error that says "Invalid use of null"
Can anyone help me?
Thanks
-Thomy5
the field i'm totaling is called Under31 and i only want to total the records
before a given date. the employeeID and the given date are displayed in a
forms current record opened and the total is put in a Dim in some VBA code.
It looks like this:
Dim intUnder31 As Integer
intUnder31 = DSum("[Under31]", "tblAbsense", "[EmployeeID] = '" & Me.
EmployeeID & "' AND_ [Start_Date_Of_Absense] < ' " & Me.Start_Date_of_Absense
& " ' ")
It keeps throwing up an error that says "Invalid use of null"
Can anyone help me?
Thanks
-Thomy5