我有 2 个表 1Tbl_purchasemaster1 和 1Tbl_purchasesub1 以及如下查询:
SELECT Tbl_PurchaseMaster.dtPurchaseDate,Tbl_PurchaseMaster.vaSupplierName,
Tbl_PurchaseSub.vaItemCode,Tbl_PurchaseSub.intQuantity
FROM Tbl_PurchaseMaster
INNER JOIN Tbl_PurchaseSub
ON
dbo.Tbl_PurchaseMaster.intPurchaseMasterID = dbo.Tbl_PurchaseSub.intPurchaseMasterID
where dtPurchaseDate between '" + dtfr + "'and'" + dtto
+ "' dtfr=datefrom and dtto=dateto..
如何将这些值填充到数据集中?填好后,我想在水晶报表中显示。请帮忙