Any way to have long text (memo) parameters in DAO and MS Access?

ぃ、小莉子 提交于 2019-12-14 03:47:06

问题


I've searched all over for information on this, and it seems like DAO paramaters in Access are restricted to 255 characters.

Really? Still? Even in Office 2010? It seems absurd. I'd prefer not to switch to ADO, but at this point it seems like I'll have to.

Is there any way to work around this while still using DAO and VBA code?

And are there any methods at all that allow using named parameters in queries that are over 255 characters in length, DAO or otherwise?


回答1:


Your choice is dynamic sql, a recordset or ADO, I am afraid.

Access Specifications 2010

And it's the same for 2013 as far as I can tell from a test.




回答2:


I've done sometime in access 2000 this including the contents of the memo field inside the sql statement, not as a paramenter. In order to do this, I had first to preprocess the memo field to duplicate each " inside the memo.

Hope it helps.



来源:https://stackoverflow.com/questions/12101247/any-way-to-have-long-text-memo-parameters-in-dao-and-ms-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!