year of date field is same as year of today

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i want to write in my query to bring me up records where the year of the
student start date field is the same as the year of today

how can this be done?
 
Database User said:
i want to write in my query to bring me up records where the year of the
student start date field is the same as the year of today

how can this be done?

Create a calculated field in your query:

Yr: Year([Start Date])

and make the Criteria for Yr be:

=Year(Date())

Tom Lake
 
Database said:
i want to write in my query to bring me up records where the year of the
student start date field is the same as the year of today

Calendar year?

WHERE start_date
BETWEEN DATESERIAL(YEAR(DATE()), 1, 1)
AND DATESERIAL(YEAR(DATE()), 12, 31)
 

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