We have a database of our sales forcast. Each manufactured item is forcasted per each monday of the month. Usually there are 4 records for each item in each month. Again, one record for each Monday. The fields in the records that I want to use are-Example:
[Item Num] [Date] [Qty]
400369 07/07/03 4
400369 07/14/03 5
400369 07/21/03 5
400369 07/28/03 6
400369 08/04/03 5
...
I want to query to allow the user to either enter the month desired, or have the user enter the begining date and end date. Then I want to reflect the total months forcast per item. I also want an adjacent field to reflect the remaining months forcast based on the time of the report is executed or in other words, based on the end user's computer clock.
I was able to format the date using the format command to change the date to appear like "mm yyyy". I thought this might make it easier to get the whole months forcast, but when I try to enter the criteria of "07 2003" on the formatted date, it comes back with nothing-blank.
I am aware of the "Now" function, to enter the criteria of the computer's clock. This would be used to gather the remaining month's forcast. However I don't know how to gather just the remaining month's records and ignoring the next month's records.
When All is done I need to look like this example based on the above table:
[Item Num] [Month Forcast] [Remaining Forcast]
400369 20 6
Blessings be upon you!
[Item Num] [Date] [Qty]
400369 07/07/03 4
400369 07/14/03 5
400369 07/21/03 5
400369 07/28/03 6
400369 08/04/03 5
...
I want to query to allow the user to either enter the month desired, or have the user enter the begining date and end date. Then I want to reflect the total months forcast per item. I also want an adjacent field to reflect the remaining months forcast based on the time of the report is executed or in other words, based on the end user's computer clock.
I was able to format the date using the format command to change the date to appear like "mm yyyy". I thought this might make it easier to get the whole months forcast, but when I try to enter the criteria of "07 2003" on the formatted date, it comes back with nothing-blank.
I am aware of the "Now" function, to enter the criteria of the computer's clock. This would be used to gather the remaining month's forcast. However I don't know how to gather just the remaining month's records and ignoring the next month's records.
When All is done I need to look like this example based on the above table:
[Item Num] [Month Forcast] [Remaining Forcast]
400369 20 6
Blessings be upon you!