Question

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

ID, MgmtVar.LoB, MgmtVar.1yr VaR FROMTest DB11_v2.accdb.MgmtVar MgmtVar WHERE COB = ? ANDEntity 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

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top