473,786 Members | 2,426 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 24796
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.goo gle.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.

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.goo gle.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.

Nov 13 '05 #3
ma******@yahoo. com (ssb) wrote in message news:<de******* *************** ****@posting.go ogle.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_djsteel e@NOSPAM_canada .com> wrote in message news:<MS******* *******@news04. bloor.is.net.ca ble.rogers.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.go ogle.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_djsteel e@NOSPAM_canada .com> wrote in message
news:MS******** ******@news04.b loor.is.net.cab le.rogers.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.goo gle.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.


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*****@hotmai l.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_djsteel e@NOSPAM_canada .com> wrote in message
news:MS******** ******@news04.b loor.is.net.cab le.rogers.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.goo gle.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.



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*******@hotm ail.com> wrote in message
news:e2******** *************** ***@posting.goo gle.com...
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
27001
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: REFERENCES ref_table ) Here is the error and the 'bad' SQL code: Server: Msg 8148, Level 16, State 1, Line 4
7
7313
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 done but I'm looking for proof of the max length of the index key column in the DB2 doc and I can't find it. I believe it is still 1024 (including index overhead). Can anyone tell me what the current max length for a column to be in an index and...
6
3566
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 -- | +-- Thief_ |
4
1337
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 accomplish that? Thanks in advance for any help! Thanks, Chuck Foster
1
2134
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 does not exceed maximum length for database column. For example, "User Name" column in database is set to varchar(30), so you would like to also set your textbox to a MaxLength of 30. To guard against hackers, etc., you also want to set up a...
1
1519
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 available='' And image<>'default.gif') AND (catcode=18 or catcode=16 or catcode=35)" This is obviously returning everything, can I amend it to only return the records where 'name' is 27 characters or less? Thanks in advance.
1
2329
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
2094
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 if(label1.Text.Length <=174) { //do something }
0
2233
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 cut, copy & paste(these options are there in our editor) and these modified files should again get stored in the database as a version of the original file.The user should also get the meaning of any word on which he/she clicks in the file in a side...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8989
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7512
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4066
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 we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.