select a.status, a.empno, prop(allt(b.lastname)+", "+allt(b.firstname)+iif(!empty(b.mid)," "+b.mid+".","")), a.signoutdate, a.signout, a.signindate, a.signin, c.comments ; from inout a, employee b, comments c where b.empno=a.empno and c.comid=a.comid ; order by a.signoutdate desc, a.signout desc, a.signin ; to file mytexthowever, i noticed i'm getting more than one field name in the text, like this
STATUS EMPNO EMPNAME .T. 00000 LENNON, JOHN .T. 00001 MCCARTNEY, PAUL STATUS EMPNO EMPNAME .F. 00002 STARR, RINGO .F. 00003 HARISON, GEORGEwhy is that? how can i avoid this? or is there any way to do this?