Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2004, 06:14 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sbabuk
Default Rowhandle must be released error

Hi

I need to open an access database with multiple index in Visual Basic.
This file contains CODE, NAME fields. First I took NAMEwise index and
seek the approprate records. Thats working. Secondly I have tried to
take the CODEwise index, then I got an error message "Row handle must
 be released". I think I want to close the first index before taking
 the second one. But I dont know the Command like SET INDEX TO in
Visual foxpro to close the first index . Can you someone help me ??
It will be very thankful.

Set rs = New ADODB.Recordset
rs.Open "prmast", con, adOpenKeyset, adLockReadOnly, adCmdTableDirect
rs.Index = "code"

 If Not LCase(rs.Index) = LCase(idxname) Then
     tprs.Index = idxname
 End If

Thanks
-Subhash





Similar Threads
Thread Thread Starter Forum Replies Last Post
A new Report Editor Released ragundis Crystal Reports 0 February 24th, 2008 09:11 PM
Directory not being released by process cptclyde Oracle 0 March 22nd, 2007 10:38 AM
Whether ASP.NET 2.0 version released aravwind General .NET 1 July 22nd, 2004 07:47 AM
Javascript Browser Sniffer 0.5 released paugq Javascript 0 May 27th, 2004 10:42 PM
When is ADO.NET 2.0 being Released?? chiefouko ADO.NET 1 April 27th, 2004 01:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.