Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2005

Tip: Looking for answers? Try searching our database.

Designing Parameter Query w/ Sum of QuantityOnOrder and ShipDate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
epete367@optonline.net - 08 Nov 2005 21:07 GMT
I would like to (have been trying to) design a parameter query to build
a report.

The report will show ProductID, ProductName, UnitsInStock,
SumQuantityOnOrder along with a text box holding an IIf statement. This
is for a home-based dessert business db. The goal is to know, at any
given time, if there is enough product on hand to meet orders for the
product.

When I add the field StartDate to the query I then cannot SUM the # of
QuantityOnOrder. Each order shows as a seperate entry in the query.
When I leave off the field StartDate I can SUM the # of QuantityOnOrder
but cannot breakdown the report as needed to if product on hand meets
orders for a given time.

I tried creating a dialog form with txtStartDate and txtEndDate. On the
query in the field StartDate I used:
Between[Forms]![frmProductOnOrderDialog]![txtStartDate] And
[Forms]![frmProductOnOrderDialog]![txtEndDate]
However, I still don't SUM the needed field.

Any suggestions or assistance would be greatly appreciated. I have
looked at this all day (creating and deleting dozen of queries, forms
and reports) trying to make it work.

Thanks!
John Vinson - 09 Nov 2005 05:14 GMT
>I would like to (have been trying to) design a parameter query to build
>a report.
[quoted text clipped - 10 lines]
>but cannot breakdown the report as needed to if product on hand meets
>orders for a given time.

Change the Group By on the Totals row under StartDate to Where. This
will include the start date only in the criteria, without grouping by
it.

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.