Error message when trying to retreive attribute value

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2005
Posts: 7
Reputation: Gunapriya is an unknown quantity at this point 
Solved Threads: 0
Gunapriya Gunapriya is offline Offline
Newbie Poster

Error message when trying to retreive attribute value

 
0
  #1
Jun 28th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 514
Reputation: techniner is an unknown quantity at this point 
Solved Threads: 19
techniner techniner is offline Offline
Posting Pro

Re: Error message when trying to retreive attribute value

 
1
  #2
Jun 28th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Error message when trying to retreive attribute value

 
0
  #3
Jun 28th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 121
Reputation: jwshepherd is an unknown quantity at this point 
Solved Threads: 5
jwshepherd's Avatar
jwshepherd jwshepherd is offline Offline
Junior Poster

Re: Error message when trying to retreive attribute value

 
0
  #4
Jun 29th, 2005
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.
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Error message when trying to retreive attribute value

 
0
  #5
Jun 30th, 2005
Let's not assume, but I'll do what I can if you post the code.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC