A
Agnes
Dim ocmdElem As New OleDbCommand()
With ocmdElem
.Parameters.Add(New OleDbParameter("@cocode",
OleDbType.VarChar, 10, "TEST"))
.CommandText = "select loginid from coinfo where code
=@cocode "
.Connection = New OleDbConnection("Provider =
VfpOleDB.1;Data Source = d:\cgl\vfpmaster\ttsdata\tts.dbc")
.Connection.Open()
.ExecuteNonQuery() <-- Error It said"Missing Operand"
End With
Please help
With ocmdElem
.Parameters.Add(New OleDbParameter("@cocode",
OleDbType.VarChar, 10, "TEST"))
.CommandText = "select loginid from coinfo where code
=@cocode "
.Connection = New OleDbConnection("Provider =
VfpOleDB.1;Data Source = d:\cgl\vfpmaster\ttsdata\tts.dbc")
.Connection.Open()
.ExecuteNonQuery() <-- Error It said"Missing Operand"
End With
Please help