ORDER BY {Lookup field} gets "Lookup has no default value"
- From: "Ian Groves" <ian@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 11 Dec 2007 23:44:53 -0000
I have a TADODataset and want to be able to order the data based on the
field a user selects from a DBGrid, the problem is I have a field that is a
lookup field. When you try to sort this colum you get
"ClientLookup has no default value"
Is their any way around this or cannot i simply not do it?
SELECT * FROM CLIENTS ORDER BY CLIENTLOOKUP
(Client lookup being the lookup field)
Many Thanks
.
- Follow-Ups:
- Re: ORDER BY {Lookup field} gets "Lookup has no default value"
- From: Bill Todd
- Re: ORDER BY {Lookup field} gets "Lookup has no default value"
- Prev by Date: Re: ORDER BY {Lookup field} gets "Lookup has no default value"
- Next by Date: Re: ORDER BY {Lookup field} gets "Lookup has no default value"
- Previous by thread: Query based on the results of another query?
- Next by thread: Re: ORDER BY {Lookup field} gets "Lookup has no default value"
- Index(es):