p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Access (http://p2p.wrox.com/forumdisplay.php?f=18)
-   -   ado getchildren problem (http://p2p.wrox.com/showthread.php?t=6483)

Jeantrudel November 21st, 2003 08:17 AM

ado getchildren problem
 
I get an empty recordset from the getchildren method. My code is as follows:
    rec.Open "", "URL=http://server/mesaieux/images/Actes/", ,adOpenIfExists Or adCreateCollection

Set rs = rec.GetChildren

The server has the frontpage 2002 server extensions and all the directories enable browsing in IIS5. The //server/mesaieux/images/Actes/ directory is not empty.

Anybody has an idea


pgtips November 21st, 2003 08:39 AM

I think your parameters are not quite right. Example from MDSN (note the extra comma before the options argument)
Quote:

quote:
...As another example, the following code will open a Recordset on the contents of the Winnt directory:

recordset.Open "", "URL=http://YourServer/Winnt/",,,adCmdTableDirect
hth
Phil

pgtips November 21st, 2003 08:46 AM

Scratch that last post, I just noticed the example I posted is for the Open method of the Recordset object, but your code is fine for the Open method of the Record object. [:I]

Jeantrudel November 21st, 2003 01:22 PM

Thank you for the try. However, it still does not work.
Anybody knows what should be the IIS5 security parameters required for that code to work?



All times are GMT -4. The time now is 08:35 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.