I need to make relation between two tables's fields
with in the code. I want to get something like that:
"select * table1 join table2 where table1.fieldA ==
table2.fieldB"

i try this:

Query q;
<..>
;
q = new Query();
   qbds1 = q.addDataSource(tableNum(Table1));
   qbds2 = qbds1.addDataSource(tableNum(Table2))

how can i relate Table1.FieldA with table2.fieldB now?

qbds2.addLink(FieldNum(table1, fieldA),
FieldNum(table2, fieldB));

gives me wrong where clause.

maybe it should be used .addrelation() method if yes
then how?

thanks


=====
Paulius Cerniauskas
Phone: +37062049339
ICQ: 280959446


     
           
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to