473,219 Members | 2,058 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,219 software developers and data experts.

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 24738
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
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
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
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
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
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
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
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
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
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.