MS Access error: The field is too small to accept the amount of data you attempted to add

大憨熊 提交于 2020-01-23 18:19:45

问题


So I'm trying to run an aggregation query in a MS Access 2007-2010 database that groups by values compared across a few fields in 2 tables. When I try to run the query, I get the error "The field is too small to accept the amount of data you attempted to add"

SELECT * FROM 
orderTable AS a INNER JOIN availableInventory AS b ON (a.sellerID = b.sellerID) AND 
(a.daysofweek = b.daysofweek) AND (a.supplierID = b.supplierID);

this error doesn't appear when I remove one of the constraints. Is this a MS Access limitation?

table a has ~3000 rows and table b has ~6000 rows if that's relevant.


回答1:


Do you have to use select *? It looks like one of your tables has a memo field which is returning a large amount of data. Instead try to list the fields of your select like this:

select a.orderID, b.partno, etc.

Or, change your query to use UniqueValues = No

See also: http://support.microsoft.com/kb/896950



来源:https://stackoverflow.com/questions/22078688/ms-access-error-the-field-is-too-small-to-accept-the-amount-of-data-you-attempt

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