請問各位大哥:
當我執行 crystal report 時,程式碼如下,產生執行時錯誤
With CrystalReport2
.SQLQuery = "select * from 印刷人員明細"
.Formulas(0) = "par =""" & frmMain.Label1.Caption & """"
.Connect = CrystalConnect
.ReportFileName = App.Path & "\emp.rpt"
.PrintFileName = App.Path & "\AAAAA"
.Action = 1
End With
err msg : This datasource does not support SQL queries.
執行階段錯誤 '20534'
Error detected by database DLL.
黃色區塊標示於 .Action = 1 上
當滑鼠移到其上時則顯示如下
.Action = <Property is write-only>
因為對crystal report 不是頂熟的.不知是哪兒出錯.
請各位前輩幫我看看問題所在!謝謝!