954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Error message when trying to retreive attribute value

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.

Gunapriya
Newbie Poster
7 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

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.

techniner
Posting Pro
527 posts since May 2005
Reputation Points: 12
Solved Threads: 19
 

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.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

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)

grid.textmatrix(0,0) = rs.fields(0).value & ""

That way you are not applying a null value to a field.

jwshepherd
Junior Poster
123 posts since Jun 2005
Reputation Points: 20
Solved Threads: 5
 

Let's not assume, but I'll do what I can if you post the code.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You