1
我正在使用Crystal Reports創建摘要數據報告。我試圖從和我的查詢日期參數使用,但它給我以下錯誤:Crystal Reports日期參數錯誤
Failed to retrieve data from database.
Details: ADO Error Code: 0x80040e10
Source: Microsoft SQL server native client 11.0
Description: No value given for one or more parameters
我的查詢裏面我是用下面給出:
select X.ITEMCODE,X.[ITEM_DESCRIPTION], X.[OPENING_BALANCE], X.[SALES], X.[TOTAL_REJECTS],
X.[REJECTION_DISEASES], X.[DOCDATE]
from
(
SELECT DISTINCT T0.ItemCode AS ITEMCODE, T0.ItemName AS [ITEM_DESCRIPTION],
ISNULL((SELECT SUM(T1.OnHand) FROM OITW T1 WHERE T1.WhsCode = 'FGS' AND
T1.ItemCode = T0.ItemCode),0) AS [OPENING_BALANCE],
ISNULL((SELECT SUM(T1.[Quantity]) FROM INV1 T1 WHERE T0.[ItemCode] = T1.[ItemCode]),0) AS [SALES] ,
(SELECT top 1 T1.[DocDate] FROM INV1 T1 WHERE T1.DocDate BETWEEN {?FromDate} AND {?ToDate} AND T0.[ItemCode] = T1.[ItemCode]) AS [DOCDATE],
ISNULL((SELECT SUM(cast(T1.[Quantity] as int)) FROM IGE1 T1 WHERE T1.DocDate BETWEEN {?FromDate} AND {?ToDate} AND T0.[ItemCode] = T1.[ItemCode]),0) AS [TOTAL_REJECTS],
Isnull((SELECT TOP 1 T1.[U_RejectionOthers]
FROM ige1 T1
WHERE T0.[itemcode] = T1.[itemcode]
), 0) AS [REJECTION_DISEASES]
from OITM T0 where T0.[ItmsGrpCod] in ('104','121','122','123','124','125','126','127','129','130','134','135','136','139','140','141','142','143','144','145')
) X
您確定所有參數都發送到帶有值的查詢嗎? –
有時,當出現此錯誤時,我需要使用註銷服務器,然後使用Crystal Reports菜單選項下提供的LogOn Server功能。不知何故,我的機器失去了連接數據庫的證書,我需要重新輸入。 –
@DouglasTimms每當我嘗試點擊確定後粘貼此查詢它是給這個error.server已經登錄。我也試過這個 – Kirat