A
Agnes
Dim authConnection As New OleDbConnection("Provider =
VfpOleDB.1;Data Source = d:\cgl\vfpmaster\ttsdata\tts.dbc")
authConnection.Open()
Dim authCommand As String = "select loginid from coinfo
where loginid = @cocode "
oleCommand.Parameters.Add("@cocode", OleDbType.VarChar,
10).Value = "1001"
or oleCommand.Parameters.Add(new oledbparameter("@cocode",
OleDbType.VarChar, 10)).Value = "1001"
Dim drRv As OleDbDataReader =
oleCommand.ExecuteReader <---ERROR
Please help, I don't know what's wrong with my statment.
For the same syntax, I can run very well in my sql server,
However, When I change into oleddb command.
I got "missing operand" error.
VfpOleDB.1;Data Source = d:\cgl\vfpmaster\ttsdata\tts.dbc")
authConnection.Open()
Dim authCommand As String = "select loginid from coinfo
where loginid = @cocode "
oleCommand.Parameters.Add("@cocode", OleDbType.VarChar,
10).Value = "1001"
or oleCommand.Parameters.Add(new oledbparameter("@cocode",
OleDbType.VarChar, 10)).Value = "1001"
Dim drRv As OleDbDataReader =
oleCommand.ExecuteReader <---ERROR
Please help, I don't know what's wrong with my statment.
For the same syntax, I can run very well in my sql server,
However, When I change into oleddb command.
I got "missing operand" error.