VB Query

C

Chris

I am running a query and outputting it into Excel then
sending the spreadsheet in an email in VB code. How do I
cancel the email from sending if the query returns no
records?

Thanks

-Chris
 
C

Chris Nebinger

IF DCOUNT("*","QueryName") > 0 then
'....Code to email it.
End IF


Chris Nebinger
 

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

Top