Click to See Complete Forum and Search --> : ADODB.Record fails to delete record!!!!


Navin Pai
August 21st, 2000, 12:46 PM
I'm using the Microsoft ActiveX Data Objects 2.5 Library. The following code fails to delete the directory I just created. My "DeleteRecord" call does not seem to work right (i.e. the call succeeds without error, but the directory itself does not get deleted).


Dim rec As New ADODB.Record

rec.Open "http://[myserver]/[existing_folder]/newfolder/", ,adModeReadWrite, adCreateCollection Or adOpenIfExists

rec.DeleteRecord
rec.Close
Set rec = Nothing

Note that the http folder "http://[myserver]/[existing_folder]/" already exists. The "Newfolder" is created, but refuses to be deleted.

Any help will be appreciated...

Navin

nlleach82
August 2nd, 2005, 01:30 PM
It never occurred to me that deleting a record in a database actually deleted an entire filesystem folder! ;)