Report Criteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi


I have a form with a cmd button on it, the button e-mails a report, the
report is based on a query that gets it criteria from the form. What I would
like to do is to e-mail the report only if there is more then 1 record that
meets the criteria from the form.
Any help on this will be greatly appreciated.
 
Use DCount() to see if there are multiple records in the query:

If DCount("*", "Query1") > 1 Then
DoCmd.SendObject ...
 
Thank you that works great!



Allen Browne said:
Use DCount() to see if there are multiple records in the query:

If DCount("*", "Query1") > 1 Then
DoCmd.SendObject ...
 

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