943,703 Members | Top Members by Rank

Ad:
Jun 28th, 2005
0

Error message when trying to retreive attribute value

Expand Post »
hi all,

I get an error message as "Invalid use of Null' when i try to retreive an attribute value from LDAP.

I could not find the reasons for this...
I find this error message when i try to retreive some specific attributes like first name ,last name in LDAP. Also i want to tel that i am successful in retreiving other attribute values.

What could be the reason for this.

Pls help me in sorting out this.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Gunapriya is offline Offline
7 posts
since Jun 2005
Jun 28th, 2005
1

Re: Error message when trying to retreive attribute value

It means the data you are pulling is blank.

Mayeb connection is not really being made?

Maybe your criteria is not being met?

In either case you are not getting any results back therfore it is an invalid use of null.

Set break points... and set up msgbox's

Like ..


msgbox "Got Here"
more code
msgbox "got here"

And all along the way display the variables.
Reputation Points: 12
Solved Threads: 19
Posting Pro
techniner is offline Offline
521 posts
since May 2005
Jun 28th, 2005
0

Re: Error message when trying to retreive attribute value

I like to debug with msgbox's, it stops the program at the point, and displays information too (such as the values contained within a variable). So, Whenever it is you are trying to read from the LDAP connection, stick a msgbox on it to very the contents being read in. Also, how are you going about connecting to, and reading fromt he LDAP connection? I'm guessing with Objects, but if you post the code, we can look through it.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Jun 29th, 2005
0

Re: Error message when trying to retreive attribute value

It shouldn't give you an error retreiving the information. The error is probably the location you are putting it in, possibly msflexgrid.
try this (if you are using msflexgrid)
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. grid.textmatrix(0,0) = rs.fields(0).value & ""
That way you are not applying a null value to a field.
Reputation Points: 20
Solved Threads: 5
Junior Poster
jwshepherd is offline Offline
123 posts
since Jun 2005
Jun 30th, 2005
0

Re: Error message when trying to retreive attribute value

Let's not assume, but I'll do what I can if you post the code.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Coolest Thing You've Done In VB
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: how to sort out type mismatch error while retreiving attribute from LDAP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC