潮
潮州人
Unregistered / Unconfirmed
GUEST, unregistred user!
有三个表(客户,订单头,订单明细).现在要显示订单编号,客户名称,[产品种品(明细中的记录)]怎么样取得产品种品
我的代码这样:
SQL.Add ('select Q.*,C.CompanyName AS CustomerName,select count(*) from QuoteDetails where Q.QuoteID=QuoteDetails.QuoteID AS CountBreed from AS CountBreed from Quote as Q,Customers as C');
SQL.Add (' where Q.CustomerID=C.CustomerID order by Q.QuoteID');
提示语法错误
ado+access2000
我的代码这样:
SQL.Add ('select Q.*,C.CompanyName AS CustomerName,select count(*) from QuoteDetails where Q.QuoteID=QuoteDetails.QuoteID AS CountBreed from AS CountBreed from Quote as Q,Customers as C');
SQL.Add (' where Q.CustomerID=C.CustomerID order by Q.QuoteID');
提示语法错误
ado+access2000