 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
sky Guest
|
Posted: Sun Oct 08, 2006 8:10 am Post subject: FieldByName when the same field exists. |
|
|
Hi all
2 Tables: T1(Fields: F1, F2, F3, F4, F5), T2(Fields: F1, F2, F6, F7)
I get a dataset with the sql statement:
select * from T1 LEFT OUTER JOIN T2 ON(T1.F1 = T2.F1 and T1.F2 = T2.F2);
because of the repeated fields F1 and F2
a error occured when I get the value of F1/F2 by using FieldByName() or
FieldValues[];
Error Message: 'MyADOQuery: Field 'F1' not found'
Any hint?
TIA
sky |
|
| Back to top |
|
 |
sky Guest
|
Posted: Mon Oct 09, 2006 8:10 am Post subject: Re: FieldByName when the same field exists. |
|
|
I got it!
add the table name when using the repeated field just like 'T1.F1' |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|