Hi all,
I've written a program to store lots of data about student users on my
network - one attribute of an AD user I use is 'info', where I make notes
about a student - overdue book, account disabled reason, etc.
Using both VB6 and VB.NET 2005, I can quite easily add information to this
field, but I'm blowed if I can take it away!
Suppose a student has an overdue book. I note 'overdue book' in the info
attribute, which is displayed on both my admin program, and a web program
I
wrote for teacher status
Now, the book has been returned, so I want to erase the comment. No way!
Active Directory WILL NOT (using any code I can muster) allow me to reset
the attribute to <empty> - the equivalent of <not set> in ADSI Editor.
How, oh how, using VB.NET 2005, can I set the field back to (nothing)?
I've tried VBNull, VBNullChar, "", Nothing, Empty - I cannot erase that
field! (I can set it to one white space, but that's not the point. I can't
set it to nothing).
Any help appreciated! :-)
Mark


|