Birthday sort criteria

  • Thread starter Thread starter Robin Chapple
  • Start date Start date
R

Robin Chapple

I have used advice from previous threads to produce a birthday table
listed on day and month numbers.

I am now attempting to add criteria to a query to give me the next 14
days records only.

This:
(Format(Date(),"mmdd"))

gives me everything after yesterday.

But this:
(Format(Date(),"mmdd")) And <(Format(Date(),"mmdd")+14)

does not give me 14 days.

What have I missed?

Thanks,

Robin Chapple
 
I have used advice from previous threads to produce a birthday table
listed on day and month numbers.

I am now attempting to add criteria to a query to give me the next 14
days records only.

This:


gives me everything after yesterday.

But this:


does not give me 14 days.

What have I missed?

Thanks,

Robin Chapple

How about:
=Format(Date(),"mmdd") And <=Format(Date()+14,"mmdd")
Or ...
Between Format(Date(),"mmdd") And Format(Date()+14,"mmdd")
 

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