简体   繁体   English

IErrorInfo.GetDescription失败,显示E_FAIL(0x80004005)。.Surendra Marri

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

Below query when I execute I am facing: 执行以下查询时,我将面临:

IErrorInfo.GetDescription failed with E_FAIL(0x80004005). IErrorInfo.GetDescription失败,并显示E_FAIL(0x80004005)。

to Connect MS Access dataBase. 连接MS Access数据库。 When I excute same in SQL Server its working but its not working for MS Access DataBase. 当我在SQL Server中执行相同操作时,它对MS Access数据库不起作用。 Can any one help on this. 谁能帮上忙。

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

You can try using the SWITCH statement for MS Access 您可以尝试将SWITCH语句用于MS Access

OR 要么

the IIF IIF

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IErrorInfo.GetDescription在asp.net c#中的E_FAIL(0x80004005)失败了? - IErrorInfo.GetDescription failed with E_FAIL(0x80004005) in asp.net c#? IErrorInfo.GetDescription 失败,E_FAIL(0x80004005) 通过 OleDB 使用 Windows Search API - IErrorInfo.GetDescription failed with E_FAIL(0x80004005) using Windows Search API via OleDB vfpoledb.1给IErrorInfo.GetDescription失败,第二次打开时出现E_FAIL(0x80004005) - vfpoledb.1 gives IErrorInfo.GetDescription failed with E_FAIL(0x80004005) on 2nd open IErrorInfo.GetDescription失败,显示E_FAIL(0x80004005)C# - IErrorInfo.GetDescription failed with E_FAIL(0x80004005) C# 查询“从打开中选择*”时,获取“ IErrorInfo.GetDescription失败,并出现E_FAIL(0x80004005)” - Getting “IErrorInfo.GetDescription failed with E_FAIL(0x80004005)” when querying “select * from open” IErrorInfo.GetDescription 因 E_FAIL(0x80004005).System.Data 而失败,而数据适配器 Fill() - IErrorInfo.GetDescription failed with E_FAIL(0x80004005).System.Data while data adapter Fill() IErrorInfo.GetSource失败,显示E_FAIL(0x80004005) - IErrorInfo.GetSource failed with E_FAIL(0x80004005) 无法通过Assembly.LoadFrom()加载强名称程序集,调用失败,并显示0x80004005(E_FAIL) - Cannot load a Strong name assembly by Assembly.LoadFrom(), call fails with 0x80004005 (E_FAIL) OLEDB Oracle未指定错误(E_FAIL(0x80004005))查询 - OLEDB Oracle Unspecified Error(E_FAIL(0x80004005)) on query 未指定的错误(HRESULT的异常:0x80004005(E_FAIL))(Web服务) - Unspecified error (Exception from HRESULT: 0x80004005(E_FAIL)) (Web Service)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM