TADOQuery - using 2 detail parameters for same master field
From: Jon Scott (NOSPAMsupport_at_blueorbsoft.comNOSPAM)
Date: 02/28/04
- Previous message: Dave Albiston: "Re: Blob Data"
- Next in thread: Jon Scott: "Re: TADOQuery - using 2 detail parameters for same master field"
- Reply: Jon Scott: "Re: TADOQuery - using 2 detail parameters for same master field"
- Reply: Brian Bushay TeamB: "Re: TADOQuery - using 2 detail parameters for same master field"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 28 Feb 2004 14:35:29 -0500
I use TADOQuery on an Access database and have a master/detail relationship between two tables.
On the detail table SQL, I have something like:
SELECT * FROM Detail
WHERE ((Detail.Field1 LIKE '%' + :PARENTFIELD + '%')
OR (Detail.Field2 = :PARENTFIELD))
However, I notice that TADOQuery only fills in the first parameter and ignores the second one
(it is null). The only way I can get this to work is to manually fill in the parameters
whenever a user moves between records on the master table and Requery the detail table. Is
there a way to make this work using TADOQuery or another ADO descendant component (freeware)?
Does using TADODataSet or TADOTable make any difference? I have yet to try those.
-- Thanks, Jon E. Scott Blue Orb Software http://www.blueorbsoft.com
- Previous message: Dave Albiston: "Re: Blob Data"
- Next in thread: Jon Scott: "Re: TADOQuery - using 2 detail parameters for same master field"
- Reply: Jon Scott: "Re: TADOQuery - using 2 detail parameters for same master field"
- Reply: Brian Bushay TeamB: "Re: TADOQuery - using 2 detail parameters for same master field"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|