Re: ORDER BY {Lookup field} gets "Lookup has no default value"



Assuming that the database you are using supports inner joins you can
do:

SELECT C.*, L.CLIENTLOOKUP FROM CLIENTS C JOIN LOOKUPTABLE L
ON C.CLIENTID = L.CLIENTID
ORDER BY L.CLIENTLOOKUP

--
Bill Todd (TeamB)
.



Relevant Pages

  • Re: Database views
    ... >I built my database with four tables linked via inner joins. ... > a primary key associated with it. ... > database view, index it and SET RELATION to the first one based on this index? ...
    (microsoft.public.fox.vfp.dbc)
  • Database views
    ... I built my database with four tables linked via inner joins. ... a primary key associated with it. ...
    (microsoft.public.fox.vfp.dbc)