Click here to Skip to main content
15,921,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am using the Visual basic access 2007 to create a Tool.Now my getting stuck as I have to apply distinct on Memo data type.But I am getting the error

"the field is too small to accept the amount of data you attempted to add access 2010 memo fields.Try inserting or pasting less data"



Please help me to out from this problem.

Thanks,
Naveen

What I have tried:

I have tried the below mentioned query to get the distinct records from memo field.

select distinct CAS from table1.
Posted
Updated 20-Feb-16 2:26am

1 solution

The short answer is that you can't.

However, you could calculate a hash value on the field, store that in another (non-memo) column then you can use
SQL
select distinct CASasHash from Table1
to identify the records you want.

There are no in-built functions to calculate the hash, but there are several examples available if you google... in fact the first one I came across when trying to find you a reference was this ... UtterAccess Forums >"indexing" Memo Fields[^]

It does beg the question as to why you would want to do this - you may like to rethink your data model.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900