I would like to know if this is possible?
my report date is in 1 table and my data is in a seperate table. I would like to sum my hours from the Appleton table from a date range in the YearMonth table
Public Function CorpRIR()
Dim mySum
Dim begD As Variant
Dim endD As Variant
Dim number
begD = DLast("ReportDate", "tblYearMonth")
endD = begD - 240 ' this will be a variable latter on just hardcoded for testing
mySum = DSum("[AppletonHours]", "tblAppleton", "[tblYearMonth]![ReportDate]= between #" & begD & "# & And #" & endD & "#")
end function
Thank you
my report date is in 1 table and my data is in a seperate table. I would like to sum my hours from the Appleton table from a date range in the YearMonth table
Public Function CorpRIR()
Dim mySum
Dim begD As Variant
Dim endD As Variant
Dim number
begD = DLast("ReportDate", "tblYearMonth")
endD = begD - 240 ' this will be a variable latter on just hardcoded for testing
mySum = DSum("[AppletonHours]", "tblAppleton", "[tblYearMonth]![ReportDate]= between #" & begD & "# & And #" & endD & "#")
end function
Thank you