I think Jens hit the nail on the head ... depending on the version of kix32, your InGroup32(xxx) and InGrp(xxx) are probably being treated as simply strings which are always true.

By the way, which version of Kixtart you running ?

I would definitely go back to the proper syntax, then debug the real problem. Using Kent's code, put in some tracers like this:

code:
IF InGroup("MIS") AND @WUserID = "sys-sc"  

?"In da group..."

USE X: "\\POR-NT1\SCANS$$"

?"ERROR @ERROR : @SERROR"

ENDIF



[ 22. October 2003, 21:13: Message edited by: Shawn ]