PRB: Query Designer Does Not Add Parenthesis to Criteria (166884)
The information in this article applies to:
- Microsoft Visual Database Tools
This article was previously published under Q166884 SYMPTOMS
If you type the following example in the Grid pane of the Query Designer:
Column Criteria
EmpId IN 123, 456
The following error message appears:
Missing subquery or the operator you entered requires parenthesis.
CAUSE
Invalid SQL syntax has been entered into the criteria cell. In SQL2, the
comparison operation IN requires parenthesis around its contents:
IN (table-expression) or IN (value-list)
RESOLUTION
Add parenthesis around the table-expression or value-list before tabbing
out of the field.
STATUS
This behavior is by design.
REFERENCES
For the latest Knowledge Base articles and other support information on
Visual InterDev and Active Server Pages, see the following page on the
Microsoft Technical Support site:
Modification Type: | Major | Last Reviewed: | 5/2/2006 |
---|
Keywords: | kbDatabase kberrmsg kbprb KB166884 |
---|
|