Another approach (even though it could contain it) -

if INSTR(@wksta,"DAYADMIN")
"yep, contains dayadmin..."
endif

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's