Exipry Date

P

Paul

I have a club members table which lists thier personal
details as well as a date field which shows when thier
membership expires.

What I want to do/know is to create a query which shows
those members who are in thier last month of thier
membership. What is the criteria I need to enter for this
to work

Thankx

Paul
 
D

Douglas J. Steele

What's your definition of "last month". With this being January, do you want
the members whose expiry dates are in January, or those whose dates are in
February?

To get those who expire in this month, try:

WHERE ExpiryDt BETWEEN DateSerial(Year(Date()), Month(Date()), 1) AND
DateSerial(Year(Date()), Month(Date()) + 1, 0)

For next month, try

WHERE ExpiryDt BETWEEN DateSerial(Year(Date()), Month(Date()) + 1, 1) AND
DateSerial(Year(Date()), Month(Date()) + 2, 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

Similar Threads

Expiry Date Query 1
Expiry Date 2
Counting multiple memberships 1
Dlookup & VB Prob. 1
Coding All Wrong - Pls Help 1
Membership Expired 2
Can "like" function be used with combo box? 3
modified date field 2

Top