Thanks for the reply - you're right, I didn't think through that using the @ipaddress method that @ldrive won't always be the in the local site.

As for the substr statement I guess it should look like

if substr(@ipaddress0,1,8)="10 .65 ."

I hope to move the whole lot to kixtart, I'm doing it little by little and trying to get the important bits that users notice to run smooth first.

regards
Paul