Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying number of data occurances in query / table 2

Status
Not open for further replies.

Moss100

Technical User
Aug 10, 2004
586
GB
Hello, I have searched for some time, but can's see how or if I can achieve this.

I have a table called NAMES

The table has unique ID field called NAME_ID

It also has a field START (which is a date field)
and a field called RENEWAL (which is again a date field)

On my form called DETAILS I would like to show the number of records which have the start date and renewal date before today

So for example the form would state something like:

Records with start date before today = 30
Records with renewal date before today = 9

Thank you Mark
 
That works great !

I also have a field called START_REMINDER

If I wanted to combine this with the code

Code:
=Sum(Abs([START]<Date()))

how would I do this?

For example I would like to count the instances of the START date as above, but only those where the field START_REMINDER is True

Many thanks Mark
 
Its OK -

The code below works -thanks for all your help

Code:
=Sum(Abs([START]<Date()) AND (Start_Reminder = yes))
 
Scrap that - it did not work - HELP!! :)
 
=Sum(Abs([START]<Date() AND Start_Reminder=True))

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
OK all works fine BUT...

I was hoping to be able to make the detail of the form invisible as it is only the result numbers I am interested in.

Unfortunately when I set the visible property of the detail to No, the results do not get calculated.

Is there a work around for this or another way I can approach this from?

In essence I just want a form (which I will make a subform) to show how many overdue dates there are for certain tasks.

Many thanks Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top