Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More than 255 characters of text in a field?

Access 101

More than 255 characters of text in a field?

by  simmerdown  Posted    (Edited  )
Access fields with the data type set to Text are limited to 255 characters [or the number specified in Field Size, whichever is smaller]. Try to insert longer strings into a text field, and you'll either get an error message or have the data cut off at the 255-character point.

There is an easy [and easily-overlooked] way around this limitation, though: set your field's data type to Memo. Memo fields are much more generous, allowing you up to 65,535 alphanumeric characters.

Also, according to Access Help, "If the Memo field is manipulated through DAO and only text and numbers [not binary data] will be stored in it, then the size of the Memo field is limited by the size of the database." Simply, with ingenuity you can exceed the 65,535-character limit as well.

For any alphanumeric data that might exceed 255 characters in length, don't employ the Text field type. Go with Memo.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top