Select t.date,t.doc,t.acct_no,t.amount,n.lastname ;
from trans as t left outer join accounts as a on t.acc_no = a.acc_no ;
left outer join names on t.name = n.name ;
into cursor curGL

Browse in window GL nomodify

I think that if your code number in the names table is called names, then you are missing the actual field for the bloke's name, which I assume to be lastname. Other wise your name table is probably structured thus: code, name, in which case the last outer join above should be:

left outer join names on t.name = n.code

Rafael Copquin



El 26/08/2013 07:25 p.m., John R. Sowden escribió:
I am creating a gl program. I need to browse transactions in date order.

two issues:
little issue:
in all of by browses, the first line is empty, including set heading off. I put the field titles in the title bar to save a line, look nice.
big issue:
I am dealing with 3 dbfs: accounts, transactions, names (payees)
this is what I wish to browse, in shorthand
trans.date, trans.doc, trans.acct_no, accounts.name, (translate name code 3 digits) in the transaction dbf to the name in the names dbf), trans.amount

doc is like a check number
I have index all of the dbfs for the fields I wish to relate. I can relate 1 to another but
relating 2 to 1 is my issue.

All of the text I have reference a 1 to may in a browse, but not a 1 to multiple manys.

tia, John



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to