I want to open a recordset by using following code:
srs.Open("select * from " & settings.Fields(1).Value & " where Name LIKE '" & Search.Text & "%'", cnn, CursorTypeEnum.adOpenDynamic, LockTypeEnum.adLockOptimistic)
But it generates an exception such as 'Operation is Not allowed when the object is open'
It would be fine When I use the following code:
srs.Open("select * from " & settings.Fields(1).Value, cnn, CursorTypeEnum.adOpenDynamic, LockTypeEnum.adLockOptimistic)
Pls help me........
srs.Open("select * from " & settings.Fields(1).Value & " where Name LIKE '" & Search.Text & "%'", cnn, CursorTypeEnum.adOpenDynamic, LockTypeEnum.adLockOptimistic)
But it generates an exception such as 'Operation is Not allowed when the object is open'
It would be fine When I use the following code:
srs.Open("select * from " & settings.Fields(1).Value, cnn, CursorTypeEnum.adOpenDynamic, LockTypeEnum.adLockOptimistic)
Pls help me........