View Problems

I have a view in which I want get the users local server name minus the last 3 letters.I currently have the following code which works within a form but not in a view.

@Left(@Name([CN]; @Subset(@DbName; 1));@Length(@Name([CN]; @Subset(@DbName; 1)))-3)

Am I missing something here…

Thanks

Dan

Subject: View Problems

Yeah. When the server indexes the view, the database is local, so the servername part of @DbName is “”.

Subject: RE: View Problems

Thanks, is there an alternative to @dbname then

Subject: RE: View Problems

No.