N
niuginikiwi
I have a Field on my report which has the following as its control source:
=Nz(DSum("PackQty","qryPacksActivity1","PackId=" & [PackId] & " And
[OrderDate] Between #" & [Forms!frmPackCrit!txtStartDate] & "# And #" &
[Forms!frmPackCrit!txtEndDate ] & "#"),0)
Basically its trying to get the sum of PackQty which is a number field in
query qryPacksAcivity1 which should filter by PackID and startDate and
EndDate range supplied from frmPackCrit
Instead I am getting a #Name? at runtime for that control source.
There a two tables behind qryPacksActivity1. They are:
tblOrders which as field OrderDate that is being used as the date range
criteria and tblOrderDetails which has the PackID field which is being used
as another criteria.
What am I doing wrong here?
=Nz(DSum("PackQty","qryPacksActivity1","PackId=" & [PackId] & " And
[OrderDate] Between #" & [Forms!frmPackCrit!txtStartDate] & "# And #" &
[Forms!frmPackCrit!txtEndDate ] & "#"),0)
Basically its trying to get the sum of PackQty which is a number field in
query qryPacksAcivity1 which should filter by PackID and startDate and
EndDate range supplied from frmPackCrit
Instead I am getting a #Name? at runtime for that control source.
There a two tables behind qryPacksActivity1. They are:
tblOrders which as field OrderDate that is being used as the date range
criteria and tblOrderDetails which has the PackID field which is being used
as another criteria.
What am I doing wrong here?