473,408 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Access treating Memo like a Text field

Hi,

I have an web app and I am using access 2002 and VB.net. I am using a
data adapter to fill a dataset.

I am retrieving product descriptions, some are long and i have used a
field of memo datatype to save them in.

The problem is sometimes I can only retrieve the first 255 characters
in a memo field and other times I can retrieve the full product
descriptions which can be over 640 charaters.

The problem is consistent, the same fields are always truncated to 255
characters and the others are always displayed in full.

Has anyone heard of this before? Any ideas on where I can look?

Thanks for any help.
Nov 13 '05 #1
5 5086
Sling Blade,
Jet's maximum column width for a text column is 255 characters. Jet is the
database engine behind Access. So, Access' maximum column with for a text
column is 255 characters. There is no easy way around this.

"sling blade" <co*************@gmail.com> wrote in message
news:9a**************************@posting.google.c om...
Hi,

I have an web app and I am using access 2002 and VB.net. I am using a
data adapter to fill a dataset.

I am retrieving product descriptions, some are long and i have used a
field of memo datatype to save them in.

The problem is sometimes I can only retrieve the first 255 characters
in a memo field and other times I can retrieve the full product
descriptions which can be over 640 charaters.

The problem is consistent, the same fields are always truncated to 255
characters and the others are always displayed in full.

Has anyone heard of this before? Any ideas on where I can look?

Thanks for any help.

Nov 13 '05 #2
Alan Webb wrote:
Sling Blade,
Jet's maximum column width for a text column is 255 characters. Jet
is the database engine behind Access. So, Access' maximum column
with for a text column is 255 characters. There is no easy way
around this.


If he is storing them in a memo field that should not be an issue as it does
not have a 255 character limitation.

to OP:
Make sure your query is not using DISTINCT or doing any GROUP BY on the memo
field. That will cause it to truncxate at 255 characters.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #3
Rick,
Memo fields are not text fields. They are an embedded object which contains
text. This allows Access to store more than 255 characters in a column but
as your post points out, also has limitations when you want to use a Memo
field in some SQL statements.

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:3a*************@individual.net...
Alan Webb wrote:
Sling Blade,
Jet's maximum column width for a text column is 255 characters. Jet
is the database engine behind Access. So, Access' maximum column
with for a text column is 255 characters. There is no easy way
around this.


If he is storing them in a memo field that should not be an issue as it
does
not have a 255 character limitation.

to OP:
Make sure your query is not using DISTINCT or doing any GROUP BY on the
memo
field. That will cause it to truncxate at 255 characters.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #4
Alan Webb wrote:
Rick,
Memo fields are not text fields. They are an embedded object which
contains text. This allows Access to store more than 255 characters
in a column but as your post points out, also has limitations when
you want to use a Memo field in some SQL statements.


But the OP indicated he was using a Memo field and then you commented that a
Text field is limited to 255 characters. I was merely pointing out that the
limitation on a Text field is not relevent since that is not what he is
using.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #5
Make sure your query is not using DISTINCT or doing any GROUP BY on the memo field. That will cause it to truncxate at 255 characters.


It was the DISTINCT keyword which was doing it. Do you know why
DISTINCT would make it behave like that?

Thank you for your help. I would never have found that on my own.

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: MLH | last post by:
I have a form with two controls: !! - combo box !! - text box A button on the form tries to run this SQL when clicked... INSERT INTO BodyMsgsSent (ToWhom, BodyText) SELECT DISTINCTROW !! AS...
4
by: intl04 | last post by:
I have a memo field that is included in some Access reports I created. Is there some way for the memo field to display nicely formatted text, with line breaks between paragraphs? Or is it necessary...
10
by: mbev | last post by:
I would like to have in a field a big amount of text with a size more than 64K. This field will have text and HTML tags. Is there a way to do this in access? Ok, I may be I need to explain myself...
6
by: Matt | last post by:
I'm having difficulty with trying to update a Access memo field through an SQL statement where the value I'm trying to pass is longer than 255 characters. The field is being truncated. I'm using...
12
by: Stephen | last post by:
Greetings all I have a form that reads a access memo field. I can query the database to get the info in the memo field without a problem...but when i try to update the data i get a exception....
4
by: Dave | last post by:
I have a field with data type of memo in my access database. I run a query from c# to access this field and it cuts off my string to only 255 characters. If i run this query directly in access...
0
by: NewbieSupreme | last post by:
I'm using PHPMyAdmin on an Apache2Triad install (latest version; 5.x.x, which installs PHP5 and PHPMyAdmin 2.8 as well). In Access, I exported a table to a text file, tab-delimited, text qualifyer...
9
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo...
2
by: steph | last post by:
I have a table with 250 fields. Of course you are wondering why 250 fields... what could I possibly be storing in so many fields? I am using this table as a general import table for files that...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.