Re: Increase field size

Tech-Archive recommends: Fix windows errors by optimizing your registry



onedaywhen wrote:
Rick Brandt wrote:
In Access
2000 and later they APPEAR to be allowed but in reality only the
first 255 characters are used in all of those situations. In my
opinion that means the restrictions still apply.

If you think "You cannot index it" still applies and "only the first
255 characters are used" then why do the following produce no errors
in creation and usage?

CREATE TABLE Test1 (
memo_col MEMO NOT NULL
UNIQUE)
;
CREATE INDEX idx__test ON Test1 (memo_col)
;
INSERT INTO Test1 (memo_col) VALUES
('1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789A')

;
INSERT INTO Test1 (memo_col) VALUES
('1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789B')

;

No biggie, I just think you made a misstatement based on Access 97
behaviour.

From Access 2003 help...
**********************
You can sort or group on a Text field or a Memo field, but Access only uses
the first 255 characters when you sort or group on a Memo field.
**********************

In a test table I created a unique index on a memo field and then entered
two records with 255 repitions of the character "X". The second record was
not allowed even if I added additional characters after the 255th so clearly
the index in only using those positions.

I will concede that "cannot" was perhaps over-stated, but their are
"limitations" compared to regular text fields.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


.



Relevant Pages

  • Re: Truncated memo field in query & mail merge output
    ... If the memo field is greater than 255 characters, a query based on the sql ... daughter should now be wearing bermuda shorts and flip flops to school. ... Distinct or DistinctRow will all truncate a memo field to 255 characters so ...
    (microsoft.public.access.formscoding)
  • Truncated memo field in query & mail merge output
    ... If the memo field is greater than 255 characters, a query based on the sql ... daughter should now be wearing bermuda shorts and flip flops to school. ... Distinct or DistinctRow will all truncate a memo field to 255 characters so ...
    (microsoft.public.access.formscoding)
  • RE: Memos or Comments in Excel
    ... Does Excel support anything like an Accees Memo field where the ... Cells can contain 1024 characters in a formula ... Cells can contain 32,767 text characters but only the first 1023 will be ... I am using Excel 2007. ...
    (microsoft.public.excel.misc)
  • RE: INSERT INTO
    ... I did get all the syntax errors fixed but I still get the "invalid argument" ... It appears that the memo field of unlimited characters is ... Everything works fine until the text in the DESC field exceeds 127 ...
    (microsoft.public.access.formscoding)
  • Re: Letter Generation
    ... So do I enter the template text into the report design view? ... in a Memo field, and set the ... The one drawback is that you can't easily use special formatting or special ... characters as you can in Word - just straight text, no bold, no italics, no ...
    (microsoft.public.access.forms)