E
Eric
I have the following
totcomm = DSum("[SumOfTotal]", "detailslinerental", "[ItemStartDate] >=
!startdate And ![ItemEndDate] <= !enddate And [TelephoneNumber] = '" &
searchnumber & "'")
!stardate and !enddate are derived from a recordset and are 2 dates.
This should return an amount but it doesn't.
When running a select query with 2 dates it returns the correct records and
totals.
Does anyone see what I'm doing wrong here? TIA.
totcomm = DSum("[SumOfTotal]", "detailslinerental", "[ItemStartDate] >=
!startdate And ![ItemEndDate] <= !enddate And [TelephoneNumber] = '" &
searchnumber & "'")
!stardate and !enddate are derived from a recordset and are 2 dates.
This should return an amount but it doesn't.
When running a select query with 2 dates it returns the correct records and
totals.
Does anyone see what I'm doing wrong here? TIA.