ID:               22162
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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

Reply via email to