Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Run-Time Error (8000500d) - The directory property cannot be found

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bryan44 - 31 Jan 2008 02:35 GMT
I am pulling data from an LDAP server and run into this error when the
following code:

    RecordValue = oObj.Get(Feild(LoopCounter))

tries to pull data for a data field that is blank.  I'm just reading data
from this LDAP server.  I'd like to be able to catch these errors when they
occur, fill the cell in my sheet with either a blank or even "No Entry" text.
However, On Error Resume Next doesn't prevent these type errors.  Otherwise
all my code functions well other than when it hits a blank data field.  
Anyone have ideas on how I can catch this error and just keep right on
trucking?

Any help would be greatly appreciated.

Bryan44
Jim Cone - 31 Jan 2008 03:06 GMT
"Feild" is misspelled; but that is probably just a typo in your message.
Don't expect much of a response on LDAP from an Excel programming newsgroup.
Signature

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)

"Bryan44"
wrote in message
I am pulling data from an LDAP server and run into this error when the
following code:
    RecordValue = oObj.Get(Feild(LoopCounter))
tries to pull data for a data field that is blank.  I'm just reading data
from this LDAP server.  I'd like to be able to catch these errors when they
occur, fill the cell in my sheet with either a blank or even "No Entry" text.
However, On Error Resume Next doesn't prevent these type errors.  Otherwise
all my code functions well other than when it hits a blank data field.  
Anyone have ideas on how I can catch this error and just keep right on
trucking?
Any help would be greatly appreciated.
Bryan44

Bryan44 - 31 Jan 2008 12:42 GMT
Jim,

Thank you for the reply.  Yes, it was late and I hand typed the code so I
mispelled field, sorry.  I was hoping that someone else using ADODB might
know right away how to trap errors of this sort.

Bryan44

> "Feild" is misspelled; but that is probably just a typo in your message.
> Don't expect much of a response on LDAP from an Excel programming newsgroup.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.