Access 2000. Well the situation is this....
I have a table with some contact details in it, including the date that the they are suppose to be contacted.
I then have a query which looks up the contact details that are due to be contacted today or are overdue for a call. i.e the date stored in the table against their contact details are >= Date().
This query is the recordsource for a form accessed by a button named "Overdue calls". So for example when the user wants to know what calls they are due to make this form opens up with the details.
However if no calls are due then the form opens up anyway with no records. What I want is some way of counting the number of records in this query and if it is > 0 (i.e there are some calls due) then the form opens with the details. Otherwise the user gets a message saying something like there are no overdue calls.
Does anyone know how I can do this.
Help appreciated
Cheers
Neemi
I have a table with some contact details in it, including the date that the they are suppose to be contacted.
I then have a query which looks up the contact details that are due to be contacted today or are overdue for a call. i.e the date stored in the table against their contact details are >= Date().
This query is the recordsource for a form accessed by a button named "Overdue calls". So for example when the user wants to know what calls they are due to make this form opens up with the details.
However if no calls are due then the form opens up anyway with no records. What I want is some way of counting the number of records in this query and if it is > 0 (i.e there are some calls due) then the form opens with the details. Otherwise the user gets a message saying something like there are no overdue calls.
Does anyone know how I can do this.
Help appreciated
Cheers
Neemi