Access query criteria

  • Thread starter Thread starter AL
  • Start date Start date
A

AL

I'm try to write a query and need some help. In a date field I want
the criteria to read:
If the date is prior to todays date then display the number 1. If the
date is today or in the future leave blank.

Any help would be appreciated.
 
Try:

IIf([ Field name here ]<date(),"1","")

Where [ Field name here ] enter the name of the field you wish to query.
If you are using 2 or more tables/queries you will need to change the joins
between them to give you better results or you may get results like this:
1
1

1


1
1

1
1
1

HTH
Davey
 

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


Back
Top