简体   繁体   中英

Data type mismatch in criteria expression Excel 2007

I am using following query trying to pull data from Access DB to my spreadsheet:

ID , MgmtVar.LoB, MgmtVar. 1yr VaR FROM Test DB11_v2.accdb .MgmtVar MgmtVar WHERE COB = ? AND .MgmtVar MgmtVar WHERE COB = ? AND Entity ID` = ?

I am getting Data Type Mismatch error for COB field which is Date data type (both in DB and in Excel)

Can anyone advise how to use parametrized query in Excel with Date data type as a parameter ?

Many Thanks

Look at this post, it solves a similar problem. Try changing the type from Date to String.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM