Word 365 MAIL MERGE 255 characters limitation when importing datas from Maria DB Database's Datasource

DIALLO Mouctar 6 Reputation points
2020-12-03T10:19:32.13+00:00

Hi,

I have created a mail merge macro in VBA with word 365 using a mariab db 3.1.10 database's datasource.

The problem is fields which have a longtext type in maria db database are truncated to 255 characters in my word's document when i execute my macro.

Is there a way to resolve it please ?

Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
924 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Erin Ding-MSFT 4,461 Reputation points
    2020-12-04T04:50:25.947+00:00

    @DIALLO Mouctar

    Generally, the system sets the data type by inspecting the first record in the data source.
    So please make sure that the first record (create a dummy one if necessary) contains more than 255 characters in the field that is being truncated.

    If you have any updates, please post back.

    Regards,
    Erin


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

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.