16929.html

来自「VB技巧问答10000例 VB技巧问答10000例」· HTML 代码 · 共 22 行

HTML
22
字号
<html>
  <head>
    <title>Help!This is a little but odd problem!Please help me!</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Help!This is a little but odd problem!Please help me!</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:96483824@clc.vtc.edu.hk">Fai</a> on August 09, 1999 at 15:35:19:<p>
TRANSFORM Sum((TotalCost))<br>SELECT format((CompleteDate),'mm/yyyy')<br>FROM OrderRecord LEFT JOIN Customer ON OrderRecord.CustID=Customer.CustID<p>where CompleteDate between ?  and ?<p>GROUP BY format((CompleteDate),'mm/yyyy')<br>PIVOT (DeptCode);<p>The above code is success when the first ? replace from #1/1999# and the second ? replace from #9/1999#<p>The DataType of Param1 is AdDate and the HostDataType of Param1 is Date(VT_DATE) and<br>that of Param2 is the same.<br>Then, I insert the value of parameter as follow and then open datareport<br>DataEnvironment1.CrossTable Format(#1/1/1999#, "mm/yyyy"), Format(#1/9/1999#, "mm/yyyy")<br>DataReport3.Show<p>The DataReport3 return error message called "Failed getting Rowset from current data source"<br>How can I fix this problem?<br>Thank you very much!
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 16929-->
</ul><!--end: 16929-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?