Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hi All
 
How to Count Gretherthan 35 more i need Count and display to DGV
 
Here i USE CODE FOR COUNT
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 31-Mar-13 6:21am
Comments
Kenneth Haugland at 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 at 31-Mar-13 13:03pm
   
over 35
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

 DGV1.Rows(j1).Cells("PassStudent").Value = Dset7.Compute("Count(Paper1)", "Paper1 >= 35")
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

To count database values, use query as DGV datasource:
SELECT PassStudent, COUNT(Paper1) AS CountOfPaper1 
FROM YourTable
GROUP BY PassStudent
ORDER BY PassStudent
  Permalink  
Comments
Navas Khanj at 31-Mar-13 14:25pm
   
thanks for your valuable Replay.
Maciej Los at 31-Mar-13 14:26pm
   
You're welcome. Call again ;)

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

  Print Answers RSS
0 OriginalGriff 230
1 PIEBALDconsult 150
2 DamithSL 125
3 Andreas Gieriet 90
4 Jochen Arndt 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 31 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100