Reputation: 11
SELECT r1.* FROM QueryName AS r1
Throws a box asking to give a value for a column [Date] in a table that doesn't exist. Clicking OK run the query, Cancel doesn't do anything.
SELECT r1.* FROM QueryName r1
Fine. No problem
Any idea why?
Upvotes: 1
Views: 1595
Reputation: 72
I was getting this Parameter issue just a little while ago. My error, though, was a mispelled column name. Check spelling again, just to be sure.
Upvotes: 0
Reputation: 91326
I suspect that the query has been previously sorted or filtered by a column that no longer exists. Open the query in design view in the query design window and check the properties.
Upvotes: 1
Reputation: 13700
Some RDBMSs do not need keyword AS for table alias but happy with column alias. In ORACLE and ACCESS keyword AS is not needed for table alias
Upvotes: 0