我的记录集已成功填充 ADO。但是现在如何将它与vb6中的数据报告的文本字段连接起来?请帮忙?我的查询如下..
str = "SHAPE {select * from sale where sale_from_id='" & firmName &
"' and ret_id='" & Trim(txtRetId) & "' and date >=#" &
Format(dtpFrom.value, "MM-DD-YYYY") & "# and date <= #" &
Format(dtpTo.value, "MM-DD-YYYY") & "#}" _
& " APPEND ((SHAPE {select sd.sale_id,sd.sdet_id,sd.item_id,i.item_name,sd.qty,sd.sdet_price,sd.sub_total
from sale_detail sd, item i where i.item_id = sd.item_id}" _
& " APPEND({select * from sale_serial} AS sale_serial" _
& " RELATE sdet_id TO sdet_id )) AS sale_detail" _
& " RELATE sale_id TO sale_id ) AS sale"