Click here to Skip to main content
16,005,181 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All

How to Count Gretherthan 35 more i need Count and display to DGV

Here i USE CODE FOR COUNT
VB
If DGV1.Rows(CC_tot).Cells(4).Value = Dset9.Rows(jj).Item("Paper1") And Dset7.Rows(j2).Item("Paper1") >= 35 Then
                       Dim vCC, vTC As Integer
                       vCC = Dset7.Rows(j2).Item("Paper1")
                       vTC = vCC
                       MessageBox.Show(vTC)
                       DGV1.Rows(CC_tot).Cells("PassStudent").Value = Dset7.Compute("COUNT(Paper1)", "") endif



Please Tell me How to count Database Value >35
Posted
Comments
Kenneth Haugland 31-Mar-13 12:58pm    
Im having a bit of trouble of understanding you, do you mean start at values over 35 or something else?
Navas Khanj 31-Mar-13 13:03pm    
over 35

To count database values, use query as DGV datasource:
SQL
SELECT PassStudent, COUNT(Paper1) AS CountOfPaper1 
FROM YourTable
GROUP BY PassStudent
ORDER BY PassStudent
 
Share this answer
 
Comments
Navas Khanj 31-Mar-13 14:25pm    
thanks for your valuable Replay.
Maciej Los 31-Mar-13 14:26pm    
You're welcome. Call again ;)
DGV1.Rows(j1).Cells("PassStudent").Value = Dset7.Compute("Count(Paper1)", "Paper1 >= 35")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900