Solved

cnt function

Posted on 2006-11-10
5
337 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
ID: 17918059
I have not heard of a CNT function... could it be a variable name?

 - sinjin
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 17918097
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
ID: 17918100
Or as sinjin posted above a variable, perhaps an array.
0
 

Author Comment

by:maximyshka
ID: 17918166
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
ID: 17918179
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

813 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

19 Experts available now in Live!

Get 1:1 Help Now