Re: TADOQuery - using 2 detail parameters for same master field
From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 02/29/04
- Previous message: Alain Bourgeois: "ldb file not deleted"
- In reply to: Jon Scott: "Re: TADOQuery - using 2 detail parameters for same master field"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 29 Feb 2004 09:18:17 -0600
>Of course, you can name a parameter whatever you want, but for TADOQuery, it must be the master
>table's fieldname. How else would it know what field to get the value from? Try it out and
>you'll see what I mean.
The SQL passed to ADO can't have parameters of the same name.
Borlands ADO components are not going to maintain master/Detail with your SQL.
You will need to change the name of one of the parameters then write code for
the master tables AfterScroll event to handle setting the detail table
parameters and then REQUERY
-- Brian Bushay (TeamB) Bbushay@NMPLS.com
- Previous message: Alain Bourgeois: "ldb file not deleted"
- In reply to: Jon Scott: "Re: TADOQuery - using 2 detail parameters for same master field"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|