Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

MySQL Count Columns in my Database Files

$
0
0
Can Anyone help me about this system thank you :angel:
This is my Code

Private Sub SubjectSchedule2()
Dim str(4) As String
---> my query ExecuteQuery("Select *,(Select count(*) from studentsubject where labday='" & labdays & "' and labtime='" & labtimes & "' and labroom='" & labrooms & "') as myCount from studentsubject where StudentID='" & studID & "'")
ListView2.Items.Clear()
With reader
If .HasRows = True Then
While .Read
str(0) = .Item("LabDay").ToString
str(1) = .Item("LabTime").ToString
str(2) = .Item("LabRoom").ToString
str(3) = .Item("mycount").ToString
Dim lv As New ListViewItem(str)
ListView2.Items.Add(lv)
End While
End If
End With
Call disconnectDB()
End Sub

help i think my query is wrong....i want to fix it, thank you
i want my Database(Listview) Count by Columns

Heres My Example Listview

Attached Images
File Type: png Help.png (23.4 KB)

Viewing all articles
Browse latest Browse all 13329

Trending Articles