M
Murph
Hi all
I've looked through the messages to try and find my answer but so far have
not been able to put all the pieces together.
Essentially, I need to count the number of locations showing sales by item
in that week or before. Query qryLocationNum is a SELECT DISTINCT Query on
SalesDetail query to get me distinct location numbers.
Here's the function:
LocCountToDate: DCount("*","qryLocationNum","[LocationNum] IN (SELECT
[LocationNumber] FROM [SalesDetail] WHERE [WeekDate] <='" &
[SalesDetail]!WeekDate & "' and [ItemNumber] = '" & [SalesDetail]!ItemNumber
& "')")
I'm new to this functionality in Access, but I think I'm close to a
solution. The results seem to be counting all locations no matter what.
I'm not one to normally ask, but am out of ideas.
Thanks in advance to anyone who might be able to assist!
I've looked through the messages to try and find my answer but so far have
not been able to put all the pieces together.
Essentially, I need to count the number of locations showing sales by item
in that week or before. Query qryLocationNum is a SELECT DISTINCT Query on
SalesDetail query to get me distinct location numbers.
Here's the function:
LocCountToDate: DCount("*","qryLocationNum","[LocationNum] IN (SELECT
[LocationNumber] FROM [SalesDetail] WHERE [WeekDate] <='" &
[SalesDetail]!WeekDate & "' and [ItemNumber] = '" & [SalesDetail]!ItemNumber
& "')")
I'm new to this functionality in Access, but I think I'm close to a
solution. The results seem to be counting all locations no matter what.
I'm not one to normally ask, but am out of ideas.
Thanks in advance to anyone who might be able to assist!