Check Fields Macro

E

esi

I want to create a macro to check that the field [Counted] has a value of
"Y" for every record before running an append query. How would I do this?
 
K

Ken Snell

A Condition such as this may work for you:

DCount("*", "TableName") = DCount("*", "TableName", "[Counted] = 'Y'")

If the above is true, every record has the value of Y in that field.
 

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