Hola, mi problema se trata de agregar campos de dos tablas a un DBGRID detalle, el cual funciona de la sigte. manera:
query al funcionar como detalle
Código Delphi
[-]
Select COMPRAS.*
From COMPRAS AS COMP
Where
COMPRAS.NUMFAC =:REFER
Hasta ahi todo bien, sin embargo al agregar la 2da tabla y su respectivo enlace para agregar los campos de la 2da tabla ya no me da los registros.
Código Delphi
[-]
Select COMPRAS.*, CAT_ART.* From COMPRAS AS COMP
JOIN CAT_ART ON COMP.NOM_PRO=CAT_ART.NOM_PRO Where
COMPRAS.NUMFAC =:REFER
NOTA: Esto lo he realizado con relaciones MAESTRO/DETALLE que tienen el mismo nombre de campo y no he tenido problemas. Utilizo query(DBTables) y tablas DBF.
SALUDOS.