Solved

cnt function

Posted on 2006-11-10
5
336 Views
Last Modified: 2006-11-18
What's the purpose of cnt() functions that is used in calculation in queries or reports

example

cnt(sum("field name")
0
Comment
Question by:maximyshka
  • 3
5 Comments
 
LVL 5

Expert Comment

by:sinjin
Comment Utility
I have not heard of a CNT function... could it be a variable name?

 - sinjin
0
 
LVL 65

Expert Comment

by:Jim Horn
Comment Utility
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.
0
 
LVL 65

Expert Comment

by:Jim Horn
Comment Utility
Or as sinjin posted above a variable, perhaps an array.
0
 

Author Comment

by:maximyshka
Comment Utility
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
0
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
Comment Utility
Perhaps the previous developer intended to type =Sum(Count([OCL])), and made a mistake.

One way to know for sure, hit your {f2} key to go to the Object Browser, search for cnt, and see what it finds.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now