>SELECT TOP 1 Date,ProjectStatus,TalentId ; > FROM yourtable ; > WHERE ProjectStatus=userinputvalue ; > ORDER BY 1 DESC ; > INTO CURSOR latest >I am only getting one record.
* lcList is a comma delimited list of use selections. SELECT TOP 1 ItemDate, TalentId, cItemType ; FROM vItemTal ; WHERE INLIST( vItemTal.cItemType, &lcList ) ORDER BY 1 DESC ; GROUP BY 2 INTO CURSOR currParentI've tried it without the GROUP BY with the same results. The view vItemTal is a concatenation of a talent and an appointment record. The only way to determine what the cItemType ( status - excuse the naming convetions. This is an inherited project ), is to find what the most recent appointment record and determine what the status is in that record. There is no status in the talent record.