# Queries with Parameters

Queries can have parameters that allow users to specify ranges and conditions for the query results.

1. To create a parameter, press the Add button.

2. When configuring the parameter, use the "@" symbol as a prefix for the parameter's name.

3. Once the query is created, Cognex Designer will add tags for the query parameters and a function that can be used to update the query:

       $MyData.MyTable.MyQuery.Parameters.Result;

       $MyData.MyTable.MyQuery.Run();