I am trying to make a status report so i can see amount of users in the database, but i can't really figure out how to get the data it returns into a string or int.
This is the code i have made so far but got stuck and can't figure out how to get past this
Any help will be appriciated
Private Sub GetStatusFromDB()
Try
Dim strSQL As String = _
"Select COUNT(*) FROM [Person-table]"
Dim commSelectStatus As New OleDbCommand(strSQL, dbConn)
Dim daAudstyr As New OleDbDataAdapter(commSelectStatus)
Dim dtAudstyr As New DataTable("")
daAudstyr.Fill(dtAudstyr)
lblBruger.Text = "Antal brugere: "
Catch ex As Exception
MessageBox.Show("Error: " & ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub