I have a datagrid in my form that contains coloumn of attendence of a perticular ID .what i want to do is to calculate total number of 'P' and 'A' in a textbox
Hello,
adjust and use the following queries to match your needs (change the YOURFILED to match your own).
<pre>
SELECT COUNT(YOURFIELD) AS COUNTPs WHERE YOURFIELD="P"
SELECT COUNT(YOURFIELD) AS COUNTAs WHERE YOURFIELD="A"
</pre>
Bye
Last Wiki Answer Submitted: May 17, 2008 5:35 pm by alessandro.panzetta9,695 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.