C
carbra
Access VBA code:
I have created a RTFcontrol box (ActiveX) ref.
(http://www.lebans.com/richtext.htm) by Stephen Leban
It is working nicely. - but:
Now I have to copy (insert codes) data from my memo field so it can be shown
in the RTFcontrol box.
If I use cut and page (CTRL-C and V) to the RTFcontrol box the text will be
shown correctly, but it will take too long time to
do it in 7000 records.
So I try to make a code for inserting the RTF2 control code in every record.
Dim txtIn As String
Dim txtOut As String
txtIn =
"{\rtf1\ansi\ansicpg1252\deff0\deflang1030{\fonttbl{\f0\fnil\fcharset0
Arial;}} {\colortbl ;\red0\green0\blue0;} {\*\generator Riched20
5.50.99.2009;}\viewkind4\uc1\pard\cf1\fs18"
txtOut = "\par}"
Me.note = txtIn & Me.note & txtOut
Me.note.Requery
It is working but the text is without line feed (vbCRLF). It is missing the
"\par" code.
???: How can I by code make a cut/page from the memo field to the RTF
control.
Have anyone a suggestion??
Thanks in advance
carbra
I have created a RTFcontrol box (ActiveX) ref.
(http://www.lebans.com/richtext.htm) by Stephen Leban
It is working nicely. - but:
Now I have to copy (insert codes) data from my memo field so it can be shown
in the RTFcontrol box.
If I use cut and page (CTRL-C and V) to the RTFcontrol box the text will be
shown correctly, but it will take too long time to
do it in 7000 records.
So I try to make a code for inserting the RTF2 control code in every record.
Dim txtIn As String
Dim txtOut As String
txtIn =
"{\rtf1\ansi\ansicpg1252\deff0\deflang1030{\fonttbl{\f0\fnil\fcharset0
Arial;}} {\colortbl ;\red0\green0\blue0;} {\*\generator Riched20
5.50.99.2009;}\viewkind4\uc1\pard\cf1\fs18"
txtOut = "\par}"
Me.note = txtIn & Me.note & txtOut
Me.note.Requery
It is working but the text is without line feed (vbCRLF). It is missing the
"\par" code.
???: How can I by code make a cut/page from the memo field to the RTF
control.
Have anyone a suggestion??
Thanks in advance
carbra