Dim authConnection As New OleDbConnection ("Provider =
VfpOleDB.1;Data Source = d:\cgl\vfpmaste r\ttsdata\tts.d bc")
authConnection. Open()
Dim authCommand As String = "select loginid from coinfo
where loginid = @cocode "
oleCommand.Para meters.Add("@co code", OleDbType.VarCh ar,
10).Value = "1001"
or oleCommand.Para meters.Add(new oledbparameter( "@cocode",
OleDbType.VarCh ar, 10)).Value = "1001"
Dim drRv As OleDbDataReader =
oleCommand.Exec uteReader <---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\vfpmaste r\ttsdata\tts.d bc")
authConnection. Open()
Dim authCommand As String = "select loginid from coinfo
where loginid = @cocode "
oleCommand.Para meters.Add("@co code", OleDbType.VarCh ar,
10).Value = "1001"
or oleCommand.Para meters.Add(new oledbparameter( "@cocode",
OleDbType.VarCh ar, 10)).Value = "1001"
Dim drRv As OleDbDataReader =
oleCommand.Exec uteReader <---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.
Comment