Put a question mark in front of the variable name. The view designer will then know it's a parameter.
>I'm using a database view. I want to set one of the filters to a variable. If I use the view designer it thinks the variable name is a character expression.