Yeah - this worked for quite a while.. now the LDAPQuery() will return a blank for BOF, -1 for EOF if there's no space, while with the space, the LDAPQuery() gets zeros for both the EOF and BOF tests and is able to return the attribute list. I've run out of hair to pull out on this.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D