Condition for No Data

J

Jani

I have a macro which appends a temp table to a SQL table and then deletes
data in the temp table but only if the Close field is a 'Y.' Sometimes there
is no 'Y' in the Close field in the temp table. How do I write a condition so
that a message pops up stating that no records were appended? Thanks! Jani
 
S

Steve Schapel

Jani,

Try like this for your Condition for a MsgBox action:

DCount("*","NameOfTempTable","[Close]='Y'")=0
 

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