Forum Moderators: open
I have a nested sql query. Each nested query is a simple sql query that returns one field and is followed by the 'as' command. For example
. . . (sub query) as FieldName . . .
One nested query returns and date and another returns a time. I am trying to order the entire query by the date and time descending so that the newest appears at the top.
If I run the query without an 'order by' commands it appears fine (just in the wrong order), however, if I add
. . . ORDER BY DateFieldName desc, TimeFieldName desc
at the end I get the following error message
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
Does anyone have any suggestions?
Chris