Conditional macro steps

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

Guest

I use DCount all the time in macros to send emails based on conditions.
Having a problem with one db. In one step the function looks at a query and
sends an email with an attachment if >0, in the next step the function looks
the query and if dcount=0, sends an email saying no records today. So only
one ot the other step is executed. In this particular db it wouldn't do
anything! Since the query is based on a linked table I made the table
internal and now it works fine.

Has anyone else experienced this? Is there some rule that dcount won't work
if the data source is an external table?
 
DSwan said:
... Is there some rule that dcount won't work
if the data source is an external table?

No, there is normally no such rule. I can't think of an explanation.
 

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

Similar Threads

Macro Conditions 0
Access Dcount (multiple criteria) 3
Repeat macro until record count of query = 0 0
SendObject Macro 10
running a macro past a condition 8
Macro conditions stop macro 1
Condition in MACRO 8
DCount 2

Back
Top