AidanEnos
MIS
- Dec 11, 2000
- 189
All this is supposed to do is look at the HS_OrderTable and prompt for date range Between, that works fine. It's going to run from a switchboard command button "Report on users for date range" that opens OrderedUsersSummaryReport whose recordsource is this Query OrderedUsersSummaryQuery.
Seems simple enough.
The rest is supposed to take other fields from the table and add the values together - it works great on the forms.
When I run this query it prompts me for the dates, I enter them in the same short date fromat I have done in the table 11/01/2007 and 11/30/2007 (I created several records with Initial Order Date 11/23/2007 for testing purposes). It accepts the dates just fine then spits back a BLANK report at me!!!!
Any help on what I missed???
SELECT DISTINCTROW HS_OrderScopeTable.OrderNumber, HS_OrderScopeTable.CustomerName, HS_OrderScopeTable.CustomerIdentifier, HS_OrderScopeTable.InitialTargetDate, HS_OrderScopeTable.InitialOrderDate, HS_OrderScopeTable.TotalEnterpriseIPOrdered, HS_OrderScopeTable.TotalEnterpriseIPActivated, HS_OrderScopeTable.TotalACDIPOrdered, HS_OrderScopeTable.TotalACDActivated, HS_OrderScopeTable.Installation_totals
FROM HS_OrderScopeTable
WHERE (((HS_OrderScopeTable.InitialOrderDate) Between [Enter Start Date] And [Enter End Date]) AND ((HS_OrderScopeTable.TotalEnterpriseIPOrdered)=[N0137959Ordered]+[N0137960Ordered]+[N0137961Ordered]+[N0137962Ordered]+[N0137963Ordered]+[N0137964Ordered]) AND ((HS_OrderScopeTable.TotalEnterpriseIPActivated)=[N0137959Activated]+[N0137960Activated]+[N0137961Activated]+[N0137962Activated]+[N0137963Activated]+[N0137964Activated]) AND ((HS_OrderScopeTable.TotalACDIPOrdered)=[N0153564Ordered]+[N0153565Ordered]) AND ((HS_OrderScopeTable.TotalACDActivated)=[N0153564Activated]+[N0153565Activated]));
Seems simple enough.
The rest is supposed to take other fields from the table and add the values together - it works great on the forms.
When I run this query it prompts me for the dates, I enter them in the same short date fromat I have done in the table 11/01/2007 and 11/30/2007 (I created several records with Initial Order Date 11/23/2007 for testing purposes). It accepts the dates just fine then spits back a BLANK report at me!!!!
Any help on what I missed???
SELECT DISTINCTROW HS_OrderScopeTable.OrderNumber, HS_OrderScopeTable.CustomerName, HS_OrderScopeTable.CustomerIdentifier, HS_OrderScopeTable.InitialTargetDate, HS_OrderScopeTable.InitialOrderDate, HS_OrderScopeTable.TotalEnterpriseIPOrdered, HS_OrderScopeTable.TotalEnterpriseIPActivated, HS_OrderScopeTable.TotalACDIPOrdered, HS_OrderScopeTable.TotalACDActivated, HS_OrderScopeTable.Installation_totals
FROM HS_OrderScopeTable
WHERE (((HS_OrderScopeTable.InitialOrderDate) Between [Enter Start Date] And [Enter End Date]) AND ((HS_OrderScopeTable.TotalEnterpriseIPOrdered)=[N0137959Ordered]+[N0137960Ordered]+[N0137961Ordered]+[N0137962Ordered]+[N0137963Ordered]+[N0137964Ordered]) AND ((HS_OrderScopeTable.TotalEnterpriseIPActivated)=[N0137959Activated]+[N0137960Activated]+[N0137961Activated]+[N0137962Activated]+[N0137963Activated]+[N0137964Activated]) AND ((HS_OrderScopeTable.TotalACDIPOrdered)=[N0153564Ordered]+[N0153565Ordered]) AND ((HS_OrderScopeTable.TotalACDActivated)=[N0153564Activated]+[N0153565Activated]));