| | |
Error message when trying to retreive attribute value
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2005
Posts: 7
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: May 2005
Posts: 514
Reputation:
Solved Threads: 19
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.
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.
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.
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)
That way you are not applying a null value to a field.
try this (if you are using msflexgrid)
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
grid.textmatrix(0,0) = rs.fields(0).value & ""
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
irc://irc.rizon.net/#itf
![]() |
Similar Threads
- Toshiba IDE1 error message (Windows NT / 2000 / XP)
- MERGED: Hardware/Driver Problems-Error Message (Windows 95 / 98 / Me)
- wupdater.exe error message (Web Browsers)
- Please help with DLL error message! (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Coolest Thing You've Done In VB
- Next Thread: how to sort out type mismatch error while retreiving attribute from LDAP
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






