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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return days in month as rows

Status
Not open for further replies.

JohnandSwifty

Technical User
May 31, 2005
192
GB
Hi,

I want to return a list of the days in a chosen month (1 day per line) and then show summarys for the day on the row - e.g.

1st £256.23 56
2nd £526.31 98
3rd £485.25 12

will i need to create 31 queries ? or is there a better way?

thanks!
 
There is a better way. Run the query to capture the month you need. sql has a month function or you could use CF to get the last day of the month and use between, there are a few ways to do it. Then output like a regular query. You may need to do some checking to fill in empty days if you have any.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top