I try to use the runbuf funtion to generate this query but not
successful. Please advised.

_SQL =  ' Select ProdBom group by itemid where ProdBom.itemid
== '+ '"'+ _item + '"';

_SQL += ' join ProdTable group by CSM_CustomerCode where
ProdTable.Prodid == ProdBom.Prodid';

_SQL += ' join CustTable group by CSM_CustomerCode,Name where
CustTable.CSM_CustomerCode == _ProdTable.CSM_CustomerCode';

_SQL += ' join SalesTable group by
CSM_Package,CSM_LeadCountId,CSM_CustomerCode where 
_SalesTable.CSM_MESLotOrderId ==  _ProdTable.CSM_MESLotOrderId';









Yahoo! Groups Links

Reply via email to