Link to home
Start Free TrialLog in
Avatar of KP_SoCal
KP_SoCalFlag for United States of America

asked on

DCount function in a Macro Condition for MS-Access

The expression below fires an action when "There are more than 35 entries in the OrderID field of the Orders table."
Code:

DCount("[OrderID]", "Orders")>35

I'm looking for a condition that would fire when "There are more than 35 entries in OrderID field that are NUll for the Orders table."

Any suggestions would be greatly appreciated! Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Tracy
Tracy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KP_SoCal

ASKER

Thanks guys for the quick response.  Both of you were close.  The expression below is the one that ended up giving me my needed result.

DCount("[OrderID]","Orders",IsNull("[OrderID]"))>35
Both solutions offered where very close to what I needed.  From their suggestions, I was able to figure out what I needed.
"Both solutions offered where very close to what I needed. From their suggestions, I was able to figure out what I needed."

Thx.