Mike

At least your getting the correct numbers returned by your variable.

These ARE NT workstations your working with? The Kixtart manual does state that ADDPRINTERCONNECTION works with NT only!

If so you could the check the @error value of the adprinterconnection to see what is happening. See the Kixtart manual for more details.

Rgds
Don