thanks, HOWEVER, the real problem is that in this
row If Instr($prin,@USERID)>0
my code belives that $prin=printers, whereas i need it to belive that $prin==>$printer1==> user1,user2,user3

Thanks