In MS Access what is the maximum "length" of the field in a table with data type "long text"?

2025-03-11T16:15:50.7233333+00:00

Hi,

i cannot see the size of the field and i have difficulties entering data with length higher than 2500 as varchar (table from sql server).

I increased the field size to 3000 but it is not working

I connected to that table again

thanks for any input

felipe

SQL Server Database Engine
{count} votes

3 answers

Sort by: Most helpful
  1. Carrera_Carazas,Luis_Felipe (GBS GES) BIG-DE-I 0 Reputation points
    2025-03-12T13:51:49.3766667+00:00

    Thanks. Yes, I know MS Access is not the best technology, though we have to use it.

    Case: From a MS Access database file, i connect / link a table to a MS SQL Server table. In my current MS Access version I have a column with data type varchar(2500) and there is a request to extend this field size to 3000.

    I updated the table in SQL Server database to varchar(3000) and also in a different test sequence as nvarchar(3000), as recommended by Microsoft. However in both cases I still cannot enter text longer than 2500 characters.

    Steps done in SQL Server / MS Access:

    1. Updated database table column size from varchar(2500) to varchar(3000) and nvarchar(3000).
    2. In MS Access I connected via ODBC to SQL Server and linked the requested table again.
    3. I refreshed the database.
    4. Enter text comment with size greater thatn 2800 in MS Access form field connected to the updated table field (according to Excel length function).
    5. Error message from system (MS Access) ->
    0 comments No comments

  2. Carrera_Carazas,Luis_Felipe (GBS GES) BIG-DE-I 0 Reputation points
    2025-03-12T13:54:03.9533333+00:00

    ErrorMessageStringOrDataTruncated

    Error message

    0 comments No comments

  3. Carrera_Carazas,Luis_Felipe (GBS GES) BIG-DE-I 0 Reputation points
    2025-03-12T15:01:31.6133333+00:00

    Issue was solved. Thanks-> There was a triggered table in the backend that was not updated with the new field size. Now it works.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.