Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query with ADO

Status
Not open for further replies.

oigo

Programmer
Apr 27, 2002
23
0
0
CO
Hello, I get this query

select * from c, a where c.id=a.cid

in the recordsource of an adodc, i get a textbox attach(datafield and datasource propoerties are good) to this control but it doesn´t show the value of the field, i made the same query in Access and it works, when I query a table, for example c, it works, what is wrong?

thanks
 
Hi

this query seem a bit wierd:
select * from c, a where c.id=a.cid

if its a join you should have something like:
select * from c inner join a on c.id=a.id
or
select * from c right join a on c.id=a.id
or
select * from c left join a on c.id=a.id

it depends of what you really need to do!
Mal'chik [bigglasses]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top