簡體   English   中英

IErrorInfo.GetDescription失敗,顯示E_FAIL(0x80004005)。.Surendra Marri

[英]IErrorInfo.GetDescription failed with E_FAIL(0x80004005)..Surendra Marri

執行以下查詢時,我將面臨:

IErrorInfo.GetDescription失敗,並顯示E_FAIL(0x80004005)。

連接MS Access數據庫。 當我在SQL Server中執行相同操作時,它對MS Access數據庫不起作用。 誰能幫上忙。

select [EmpName],EmpMaster.EmpCodeDisplay,Transactions.CardNo,
case when CONTROLLERS.ControllerName = 'Level0Entry' then 'Reception' when CONTROLLERS.ControllerName = 'LevelBCiscoNSNRx' then 'Basement' 
else CONTROLLERS.ControllerName end as ControllerName,aDateTime from Transactions 
inner join CONTROLLERS on Transactions.ControllerNo = CONTROLLERS.ControllerNo  
inner join EmpMaster on Transactions.EmpCode = EmpMaster.EmpCode 
where transactions.ControllerNo in ('7','9') and aDateTime between '1/28/2015 05:45:00.000' and '1/28/2015 23:59:00.000' 
and transactions.EmpCode <> '0'   and Transactions.CardNo in (select CardNo from Transactions 
where transactions.ControllerNo in ('7','9') and transactions.EmpCode <> '0' and aDateTime between '1/28/2015 05:45:00.000' and '1/28/2015 23:59:00.000' 
 group by Transactions.CardNo having COUNT(Transactions.CardNo) < 2 )  order by aDateTime asc

您可以嘗試將SWITCH語句用於MS Access

要么

IIF

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM