B
Ben
Hi,
I want to execute a stored procedure ("myquery") in Access. I use the oledb
connector.
......
Dim oConnection As System.Data.OleDb.OleDbConnection
oConnection = New System.Data.OleDb.OleDbConnection()
Dim comd As System.Data.OleDb.OleDbCommand
Dim sConnectionString As String
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source
= c:\mydb.mdb"
oConnection.ConnectionString = sConnectionString
oConnection.Open()
comd = New System.Data.OleDb.OleDbCommand("myquery", oConnection)
......
This doesn't work. I don't know to tell it's not an sql command..
Thanks
Ben
I want to execute a stored procedure ("myquery") in Access. I use the oledb
connector.
......
Dim oConnection As System.Data.OleDb.OleDbConnection
oConnection = New System.Data.OleDb.OleDbConnection()
Dim comd As System.Data.OleDb.OleDbCommand
Dim sConnectionString As String
sConnectionString = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source
= c:\mydb.mdb"
oConnection.ConnectionString = sConnectionString
oConnection.Open()
comd = New System.Data.OleDb.OleDbCommand("myquery", oConnection)
......
This doesn't work. I don't know to tell it's not an sql command..
Thanks
Ben