#22162 [Opn->Fbk]: Program performs "illegal operation"

From: Date: Tue, 11 Feb 2003 15:57:54 +0000
Subject: #22162 [Opn->Fbk]: Program performs "illegal operation"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32775@lists.php.net to get a copy of this message
ID: 22162 Updated by: sniper@php.net Reported By: webber123456@hotmail.com -Status: Open +Status: Feedback Bug Type: COM related Operating System: win98/pws/ie5 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2003-02-11 02:19:51] webber123456@hotmail.com creating a disconnected recordset with access_db/ADO/COM does not work /////////////////////////////////////////////////// # to disconnect a recordset it must be created explicitly $DB_RS = new COM("ADODB.Connection") or die("Cannot start ADO"); $DB_RS->Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath($DB_Path)); $rstemp= new COM("ADODB.Recordset") or die("Cannot create Recordset");; $rstemp->cursorlocation=3; $rstemp->ActiveConnection = $DB_RS; $rstemp->Open ($SQL,$DB_RS,2,1,0) ; # this line below disconnects the recordset $rstemp->ActiveConnection=null; /////////////////////////////////////////////////// error from this line $rstemp->ActiveConnection = $DB_RS; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22162&edit=1

« previous php.bugs (#32775) next »