Solved

cnt function

Posted on 2006-11-10
5
338 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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…

840 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