date expression question

  • Thread starter Slez via AccessMonster.com
  • Start date
S

Slez via AccessMonster.com

What kind of expression in the criteria of a date field would accomplish this?


I'd like to return related records of a date field where the value is greater
than the current month. I am generating a sales forecast, and I don't want
to display this month, but I do want to display next month and beyond.

Thanks
Slez
 
J

John Spencer

The following expression gives you the first day of the next month

DateSerial(Year(Date()),Month(Date())+1, 1)

So, in a query
Field: [Your Date Field]
Table: [Your Table]
Criteria: > = DateSerial(Year(Date()),Month(Date())+1, 1)

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 

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

Top