Link to home
Start Free TrialLog in
Avatar of maximyshka
maximyshka

asked on

cnt function

What's the purpose of cnt() functions that is used in calculation in queries or reports

example

cnt(sum("field name")
Avatar of sinjin
sinjin
Flag of United States of America image

I have not heard of a CNT function... could it be a variable name?

 - sinjin
Avatar of Jim Horn
Double-click on the cnt, then right-click:Definition, and see what pops up.

Either cnt is a function/sub used by another object model not commonly used in Access, or it is a custom public function/sub.
Or as sinjin posted above a variable, perhaps an array.
Avatar of maximyshka
maximyshka

ASKER

It is used in report footer (report created by someone else)

=Sum(cnt([OCL]))

OCL is one of the fields in table.  I don't think definition will work there
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
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