Delphi 7 Enterprise.
I am using 3 dbGrids, each connected to an ADOQuery.
dbGrid1) The ADOquery brings up a part number from the detail table, and from that I get an invoice number.
dbGrid2) The 2nd ADOQuery is passed the invoice number and shows the general purchase information for that transaction (header)
dbGrid3) The 3rd ADOQuery again receives the invoice number as a parameter, and goes to the detail table to extract more helpful information about the transaction.
Worked perfectly using Access and ADOtables, but now that I am using a much larger SQL based database and can't use tables, I am using only queries. Step 1 and 2 work perfectly. In step 3 the dbgrid shows the field headers but no data. The parameter is not being passed. It is as if the parameter cannot be passed to the third dbGrid. Is that true? If so, I do not know how to correct that.
I am using 3 dbGrids, each connected to an ADOQuery.
dbGrid1) The ADOquery brings up a part number from the detail table, and from that I get an invoice number.
dbGrid2) The 2nd ADOQuery is passed the invoice number and shows the general purchase information for that transaction (header)
dbGrid3) The 3rd ADOQuery again receives the invoice number as a parameter, and goes to the detail table to extract more helpful information about the transaction.
Worked perfectly using Access and ADOtables, but now that I am using a much larger SQL based database and can't use tables, I am using only queries. Step 1 and 2 work perfectly. In step 3 the dbgrid shows the field headers but no data. The parameter is not being passed. It is as if the parameter cannot be passed to the third dbGrid. Is that true? If so, I do not know how to correct that.