473,499 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reg: How to store text of length more than 255 characters in column?

ssb
Hi,

As I understand, in MS-Access, the maximum length of data type "TEXT"
is 255. Therefore, I am able to store a maximum of 255 characters only
in the column cells.

Is there a way to store longer text information in a column..?

Thanks.
Nov 13 '05 #1
9 24773
Use a Memo field instead

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"ssb" <ma******@yahoo.com> wrote in message
news:de**************************@posting.google.c om...
Hi,

As I understand, in MS-Access, the maximum length of data type "TEXT"
is 255. Therefore, I am able to store a maximum of 255 characters only
in the column cells.

Is there a way to store longer text information in a column..?

Thanks.

Nov 13 '05 #2
SSB,
If the size you need is more than 255 and you want the flexibility of
querying text inside the column you can use an old trick of DBA's of
yesteryear--overflow columns. The DBA would add additional 255 character
columns to the schema to accomodate more text than would fit in a single
column. Then he or she would build a view which concantenated together the
contents of the columns. It's a kludge and it flies in the face of orthodox
relational database design but it gets the job done.
Me? I use MSDE so I can use the nvarchar data type. This gives me 4000
characters in a single column and support for langauges that don't use our
ANSI character set.

"ssb" <ma******@yahoo.com> wrote in message
news:de**************************@posting.google.c om...
Hi,

As I understand, in MS-Access, the maximum length of data type "TEXT"
is 255. Therefore, I am able to store a maximum of 255 characters only
in the column cells.

Is there a way to store longer text information in a column..?

Thanks.

Nov 13 '05 #3
ma******@yahoo.com (ssb) wrote in message news:<de**************************@posting.google. com>...
Hi,

As I understand, in MS-Access, the maximum length of data type "TEXT"
is 255. Therefore, I am able to store a maximum of 255 characters only
in the column cells.

Is there a way to store longer text information in a column..?

Thanks.


use a Memo field.
Nov 13 '05 #4
ssb
Thanks Doug.......Memo type seems to work......

"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message news:<MS**************@news04.bloor.is.net.cable.r ogers.com>...
Use a Memo field instead

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

Nov 13 '05 #5
Rob
ma******@yahoo.com (ssb) wrote in message news:<de**************************@posting.google. com>...
Hi,

As I understand, in MS-Access, the maximum length of data type "TEXT"
is 255. Therefore, I am able to store a maximum of 255 characters only
in the column cells.

Is there a way to store longer text information in a column..?

Thanks.


You'll probably get a million responses here, but use a MEMO field data type.
Rob
Nov 13 '05 #6
Douglas,
The last time I played with Memo fields I was frustrated to find that Access
treated them like objects and gave me a limited ability to query against
them. It soured me on the datatype and since then I've avoided it. This
was in Access 97, I believe. Have things changed for the better?

"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:MS**************@news04.bloor.is.net.cable.ro gers.com...
Use a Memo field instead

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"ssb" <ma******@yahoo.com> wrote in message
news:de**************************@posting.google.c om...
Hi,

As I understand, in MS-Access, the maximum length of data type "TEXT"
is 255. Therefore, I am able to store a maximum of 255 characters only
in the column cells.

Is there a way to store longer text information in a column..?

Thanks.


Nov 13 '05 #7
In Access, you can store a string of more that 255 characters by
switching the field type from text to Memo.
Nov 13 '05 #8
AFAIK, there's no restriction against querying them. You can't, however,
sort on Memo fields, which means you can't use them with DISTINCT clause or
UNION statements. (you can use UNION ALL instead though)\

FWIW, I'm talking about Access 97, since that's what I do most of my work in
still.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Alan Webb" <kn*****@hotmail.com> wrote in message
news:qz*****************@news.uswest.net...
Douglas,
The last time I played with Memo fields I was frustrated to find that Access treated them like objects and gave me a limited ability to query against
them. It soured me on the datatype and since then I've avoided it. This
was in Access 97, I believe. Have things changed for the better?

"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:MS**************@news04.bloor.is.net.cable.ro gers.com...
Use a Memo field instead

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"ssb" <ma******@yahoo.com> wrote in message
news:de**************************@posting.google.c om...
Hi,

As I understand, in MS-Access, the maximum length of data type "TEXT"
is 255. Therefore, I am able to store a maximum of 255 characters only
in the column cells.

Is there a way to store longer text information in a column..?

Thanks.



Nov 13 '05 #9
Jeff,
Right, but Memo has limitations when it comes to sorting by that colum,
inclusion in some types of queries, etc. that make me avoid it. Besides,
MSDE ships with Access since 2K and implements enough of SQL Server that I'm
happy to use that instead of Jet.

"Jeff Leckrone" <jl*******@hotmail.com> wrote in message
news:e2**************************@posting.google.c om...
In Access, you can store a string of more that 255 characters by
switching the field type from text to Memo.

Nov 13 '05 #10

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

Similar topics

2
26932
by: adammitchell | last post by:
How can you indicate that a FOREIGN KEY constraint references two columns in two different tables? "SQL Server Books Online" show an example of how to reference two columns in the SAME table:...
7
7268
by: mghale | last post by:
Hi, This is probably a really dumb question but I have a table containing a varchar 4000 column. The app team is asking me to index this column to improve performance. I know this can't be...
6
3544
by: Thief_ | last post by:
Can a combobox conatin more than one column? I want to store text in one column and in the other (hidden) column store integer values which are associated with the text. VB.Net 2003 -- |...
4
1320
by: Chuck Foster | last post by:
I have a datagrid and I want 3 columns to share the same column header. I have ColID, ColName, and 3 Hyperlink columns that need to have AdminFunctions as their header. Anyone know how to...
1
2115
by: Dan Manes | last post by:
Wondering what other people do about this issue... You're writing a web app in asp.net that requires user input. Data will be stored in SQL Server Express database. You want to make sure data...
1
1502
by: malukj | last post by:
Hi, I wish to return only the data where the 'name' field (text) is 27 characters or less. I've searched but cannot find a solution. objRS.Open "SELECT * FROM products WHERE (notes<>'' AND...
1
2288
by: shruti m | last post by:
Plz tell me how to fix the column width of a table and it should not change as the text length of column increases. The text should overlap when it exceeds the column width.
1
2081
by: sentimental37 | last post by:
hi i m using the following code in if-else can i use the same in switch case if (label1.Text.Length <= 87) { //do something } else...
0
2214
by: Deepa Avudiappa | last post by:
We have designed a basic text editor using GTK+ in Ubuntu. We are supposed to store text files within a database(postgreSQL) which can be retrieved, viewed on our editor, modified using the options...
0
7132
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
7178
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
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7390
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
5475
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,...
1
4919
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
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.