Faced the problem that a value> 255 characters (MEMO) cannot be passed to a request with parameters, which causes an "invalid property value" error.

If the insertion is done with the query through currentDb.Execute("INSERT INTO ... VALUES") , then everything is fine, but the method may stumble on a line where the text will have quotation marks => you need to escape everything.

Tell me, is it possible to get around this somehow (problem with queries with a parameter)?

If not, are there standard screening methods or do you need to handle quotes before calling execute ?

  • And why do not you want to insert records through ADODB.Recordset? there these problems will not be ... if you wish, you can pack all this into a wrapper function, which you can debug once - and forget about problems for the rest of your life. - Akina
  • @Akina, there seems to be a restriction too, but at 512. - iluxa1810
  • ADODB.Recordset.Field.AppendChunk - and even thrust an elephant ... - Akina
  • @Akina, and no way without a RecordSet? Through request with parameters? - iluxa1810

0