Share via

PlainText function in Access 2010

Anonymous
2017-11-27T10:14:11+00:00

Hi there, 

I am trying to remove html code from Memo data fields in an access database, but every time I run a query with PlainText([table.name].[field.name]), the query changes the data field type from Memo to Text, and I lose almost all the information in the fields. Is there any way to specify in the query that I want the fields to remain as Memo?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2017-11-28T06:07:16+00:00

    While the below link has to do with Excel, the same reasons apply as to why your field is being truncated...

    http://www.access-diva.com/q4.html

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2017-11-27T12:42:06+00:00

    Hi,

    the PlainText method doesn't change the data type. If your memo field gets truncated at 255 characters in the query then you maybe do a grouping on the query column or have a DISTINCT in the query which have this effect.

    You can do a test by using PlainText for the memo field in a simple SELECT query without grouping or aggregate functions etc. If you really have to do aggregations or groupings then try to use a function like Min() for the memo field as this doesn't truncate.

    If you can't find a solution then post the SQL statement of the query.

    Was this answer helpful?

    0 comments No comments