Current Month

  • Thread starter Thread starter Al V
  • Start date Start date
A

Al V

In a query, how do I ask for Invoice Date (this query has
to do with receivables) for this month only. Without
having to put the month number in each time?

TIA
Al
 
In your query's design view, try adding two new fields as follows:

In the Field: row: Year([InvoiceDate])
In the Criteria: row: Year(Date())

In the Field: row: Month([InvoiceDate])
In the Criteria: row: Month(Date())



hth,
 
How about..

SELECT Month([RecDate]) AS Expr1, RScores.RecDat
FROM RScore
WHERE (((Month([RecDate]))=Month(Now())))
 
You might also try criteria like this on your Invoice Date field:
=DateSerial(Year(Date()), Month(Date()), 1) And <DateSerial(Year(Date()),
Month(Date()) + 1, 0)
 

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

Back
Top