Hi Folks,
I upsized my database tables to MsSql2000. Works ok. Except for a subform with a Select Distinct in it. It gives the error message: "Server: Msg 145, ORDER BY items must appear in the select list if SELECT DISTINCT is specified." But there is no Order By clause in the query. The query runs ok (in dataview), but when I open the subform which has its control source set to the query, the error message appears. The [order by] and [order by on]-properties of the subform are resp Null and off. Any ideas who to correct this?
This is the query:
Pampers![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
Just back from holiday...
that may it explain it.
I upsized my database tables to MsSql2000. Works ok. Except for a subform with a Select Distinct in it. It gives the error message: "Server: Msg 145, ORDER BY items must appear in the select list if SELECT DISTINCT is specified." But there is no Order By clause in the query. The query runs ok (in dataview), but when I open the subform which has its control source set to the query, the error message appears. The [order by] and [order by on]-properties of the subform are resp Null and off. Any ideas who to correct this?
This is the query:
Code:
SELECT DISTINCT tblOperations.operationsID, tblOperations.FileNumber, tblOperations.ETC, tblOperations.ETCDate, tblOperations.ETCTime, tblOperations.ETD, tblOperations.ETDDate, tblOperations.ETDTime, tblOperations.ETDRemark, tblOperations.[Next Port], tblOperations.[ETA next port d], tblOperations.[ETA next port t]
FROM tblOperations;
Pampers
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
Just back from holiday...
that may it explain it.