Dim authCommand As String = "select count(*) as iRowCount
from coinfo where loginid = @cocode and ((curr_pwd = @pwd and effdate >
getdate()) or (eff_pwd = @pwd and effdate <= getdate()))"
Dim oleCommand As New OleDbCommand(au thCommand,
authConnection)
oleCommand.Para meters.Add(New OleDbParameter( "@cocode",
OleDbType.VarCh ar, 10))
oleCommand.Para meters("@cocode ").Value = UserName
oleCommand.Para meters.Add(New OleDbParameter( "@pwd",
OleDbType.VarCh ar, 50))
oleCommand.Para meters("@pwd"). Value = UserPassword
Dim iCount As Integer = CType(oleComman d.ExecuteScalar (),
Integer) <--- error
It said "Missing operand" . Please help
from coinfo where loginid = @cocode and ((curr_pwd = @pwd and effdate >
getdate()) or (eff_pwd = @pwd and effdate <= getdate()))"
Dim oleCommand As New OleDbCommand(au thCommand,
authConnection)
oleCommand.Para meters.Add(New OleDbParameter( "@cocode",
OleDbType.VarCh ar, 10))
oleCommand.Para meters("@cocode ").Value = UserName
oleCommand.Para meters.Add(New OleDbParameter( "@pwd",
OleDbType.VarCh ar, 50))
oleCommand.Para meters("@pwd"). Value = UserPassword
Dim iCount As Integer = CType(oleComman d.ExecuteScalar (),
Integer) <--- error
It said "Missing operand" . Please help
Comment