Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

please help me count the number of days

Status
Not open for further replies.

kwill

Technical User
Aug 15, 2001
49
US
I have several orders a day. I want to be able run a query on a certain time frame to see how many orders I had and (what I don't know how to do) count the number of days on which I had orders. Can you help?
 
Create a Totals query. Create a select query adding your date field to the QBE grid twice. Then press the Sum button on the toolbar. Leave the first instance of the date as Group By and change the second one to Count. Run the query and you should get a grouping of each date and the count of the number of records for that day. If the date field also includes time then you'll need to format it in the field property. Use the following syntax to do this:

Format([DateFieldName], "Short Date")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top