Now for my next question...

  • Thread starter Thread starter Lurch
  • Start date Start date
L

Lurch

Again, I have a query which will be attached to a form. (Maybe I should be
in the queries forum-Sorry if I should)

This query has a table which has the twelve months. How can I get it to add
only the months up to the current month? If it is March add Jan, Feb and
March. If it is April, well you get the idea.

I'd like to keep it in the query if I could. As I may have many forms that
may rely on it.
 
Dear Lurch:

Your table of 12 month names needs to also have a column like MonthNo
which contains integers 1 to 12, putting them in order.

Then, you can say:

WHERE MonthNo <= MONTH(Date())

so you get January, February, and March.

Make sense?

Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Keeping 12 months of records 6
OK...Now I have another question... 3
Union Query is deleting data 1
Trend By Month 2
Link Query 3
month 1
dynamically choose columns in query 1
Days per month 14

Back
Top