"Parameter xxx has no default value" error when using Order by in SQL statement

Posted by Tofig Hasanov on Stack Overflow See other posts from Stack Overflow or by Tofig Hasanov
Published on 2010-05-08T12:06:43Z Indexed on 2010/05/08 12:08 UTC
Read the original article Hit count: 189

Filed under:
|
|
|
|

I am trying to run the following SQL statement:

"SELECT *, (IIF([Field]=TRUE,'StringValue1','StringValue2') AS [NewField] FROM [Table1] ORDER BY [NewField] ASC"

But this gives me an error "Parameter NewField has no default value". How can I solve it?

I am using Microsoft Access (MDB) database using Jet Engine from Delphi 7.

Thank you!

© Stack Overflow or respective owner

Related posts about sql

Related posts about mysql