Diary report

  • Thread starter Thread starter RitchieJHicks
  • Start date Start date
R

RitchieJHicks

Hi,

I am not overly confident in reports/querys. I have a field in my
application called "Next Diary Date". I wish to run a report which will show
a list of all records which have a diary date of today and previous to today.
I do not want the report to show any records which have a date set tomorrow
onwards.

Could anyone offer me some advice on this please?

Regards,
Ritchie.
 
RitchieJHicks said:
Hi,

I am not overly confident in reports/querys. I have a field in my
application called "Next Diary Date". I wish to run a report which will
show
a list of all records which have a diary date of today and previous to
today.
I do not want the report to show any records which have a date set
tomorrow
onwards.

Could anyone offer me some advice on this please?

Regards,
Ritchie.


SELECT * FROM YourTableNameHere WHERE [Next Diary Date] < Date + 1

In query design view, you would enter < Date + 1 in the Criteria row in the
Next Diary Date column.
 
Phew, one which makes sense!

In the query on which the report is based, under the date field put the
criteria

Between Date() And (Date()-1)

Evi
 
Thank you Evi. Super duper. Only thing was that I wanted to show all days in
the past not just yesterday, so I just changed the -1 to -15000.

Thanks!
 

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

Diary report Help! 5
diary dates & current date 1
Report/Query Criteria 1
Grouping without a primary key 1
Diary query Help! 2
Report on just an individual record 1
Outlook Automatic date creation Outlook 2010 1
Outlook Creating a date in Outlook 2010 1

Back
Top