J
Jim Campau
Can someone please tell me what is wrong with this code.
I know that the line indicated with and arrow is wrong somehow, but I am not
sure about the query either.
I am just trying to have the txtBox return the number of rows that has [Code
Number] = 2
By the way this is an Access Database
Thanks in advance
Public Sub btnRun_Click(ByVal sender As ystem.Object, ByVal e As
System.EventArgs) Handles btnRun.Click
ChangeOverDataSet1.Clear()
OdbcDataAdapter1.Fill(ChangeOverDataSet1)
Dim Connection As Odbc.OdbcConnection = New dbc.OdbcConnection
Dim Command As Odbc.OdbcCommand = New dbc.OdbcCommand("SELECT COUNT (*)
FROM tblPkgDT_rev2 WHERE [Code Number] = '2'", OdbcConnection1)
---> txtResult.Text = Command.ToString
End Sub
I know that the line indicated with and arrow is wrong somehow, but I am not
sure about the query either.
I am just trying to have the txtBox return the number of rows that has [Code
Number] = 2
By the way this is an Access Database
Thanks in advance
Public Sub btnRun_Click(ByVal sender As ystem.Object, ByVal e As
System.EventArgs) Handles btnRun.Click
ChangeOverDataSet1.Clear()
OdbcDataAdapter1.Fill(ChangeOverDataSet1)
Dim Connection As Odbc.OdbcConnection = New dbc.OdbcConnection
Dim Command As Odbc.OdbcCommand = New dbc.OdbcCommand("SELECT COUNT (*)
FROM tblPkgDT_rev2 WHERE [Code Number] = '2'", OdbcConnection1)
---> txtResult.Text = Command.ToString
End Sub