hdhere 0 Newbie Poster

The following SQL results in an "invalid procedure call" message.

SELECT ViewtimeHCPick1WRes1.X
FROM ViewtimeHCPick1WRes1
where (((ViewtimeHCPick1WRes1.X)>2));

SELECT ViewtimeHCPick1WRes1.X
FROM ViewtimeHCPick1WRes1;

works fine.

ViewtimeHCPick1WRes1 is a query.
X is a calculated field that results in a number of format x.y or x.

Any suggestions as to why the where clause is not working?