Re: Building master detail relationship

From: Barak zabari (lotemlotad_at_yahoo.com)
Date: 03/17/05


Date: Thu, 17 Mar 2005 10:50:15 +0200

What error message?
For me this work

Qry1.sql.add('select * from table1')
Qry2.Sql.add('Select * from Table2')
Qry2.Sql.add(Where OEB01= :OEA01')

and set qry2.datasource = datasource1

"Oliver Tse" <news@olivertse.com> wrote in message
news:42393370@newsgroups.borland.com...
> I have two ADOQuery.
>
> query1 with datasource1 has fields:
> OEA01, .......
>
> query2 has fields:
> OEB01, ......
>
> where OEA01 = OEB01.
>
> The SQL string in the query2 is:
> Select * from table2 where OEB01 = :OEA01
>
> I set the datasouce property of 2nd query to datasource1. I open the 1st
> query is OK. When I tried to open the 2nd query, a error message was
showed
> and the 2nd query could not be open.
>
> Anybody can help me to solve this problem?
>
> Thank you
>
> Oliver Tse
>
>



Relevant Pages

  • Re: Building master detail relationship
    ... > I have two ADOQuery. ... > The SQL string in the query2 is: ... When I tried to open the 2nd query, ...
    (borland.public.delphi.database.ado)
  • Re: Query of checkboxes.
    ... Copy and paste that exact expression into a vacant Field cell in the query ... and copy and paste the entire SQL string to a message here. ... what's not working and how (error message? ...
    (microsoft.public.access.queries)
  • Building master detail relationship
    ... query1 with datasource1 has fields: ... The SQL string in the query2 is: ... When I tried to open the 2nd query, ...
    (borland.public.delphi.database.ado)
  • Re: OutputTo to Excel question
    ... I can't help you with the macro error message as I don't use macros. ... the result from a query. ... Save a query that pulls the same data as the report. ...
    (microsoft.public.access.macros)
  • Re: Background Web Queries flaws!
    ... There is no way to trap errors on a background query. ... There is no way to control the timeout setting. ... The basic problem is that IE spits an error message before returning control ... > hard coded a 5 minute limit into the web query system. ...
    (microsoft.public.excel.programming)