Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO, Visual Basic and SQLOLEDB

Status
Not open for further replies.

Lozzer

Programmer
Apr 16, 2002
7
GB
I am trying to open a static, pessimistic locking recordset on a SQL 7 server which needs some record deletions.

I need also to order the recordset and have been trying to do so by using an order by clause in the SQL statement in the open method of the recordset.

If I remove the ORDER BY clause the recordset opens fine.

If I use the ORDER BY clause, the recordset returned is always read only and forward only!!

Does anyone have any ideas how to get around this problem??
PLEASE HELP!!
 
You have to change your cursor to something besides static. This is a forward only cursor. If you choose to battle wits with the witless be prepared to lose.
[machinegun][ducky]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top