Leban RTF2 odd Behavior

K

keldg

I have a tabel with lots off memo fields. No data is present in thos
fields.
I have a report and a Form bound to these memo fields. When I run th
form there no problems, the RTF2 control displays everything correct
If I close the Form and I don't enter any information, and run th
report, the following information is writen in the control:

'RTF2 Control Design View Window'

When I go back to the Form the same information i writen in th
Control.

When i take a look in the table, every field has suddenly the same dat
(when no one before):

{\rtf1\ansi\ansicpg1252\deff0\deflang1030{\fonttbl{\f0\fnil\fcharset
Arial;}}
{\colortbl ;\red0\green0\blue0;}
\viewkind4\uc1\pard\tx360\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600\tx3960\tx4320\tx4680\tx5040\tx5400\tx5760\tx6120\tx6480\tx6840\tx7200\tx7560\tx7920\tx8280\tx8640\tx9000\tx9360\tx9720\tx10080\tx10440\tx10800\tx11160\tx11520\cf1\fs1
RTF2 Control Design View Window\par
}

Do anyone have any clues howcome this happen?

This problem only applies to Access2000 on Win2k.
On a WinXP with Access2003 there is no problem.

NB.
On Form_Load() i execute the following code:
For Each ctrl In Form.Controls
If ctrl.ControlType = 119 Then
If IsNull(ctrl.Value) Then
ctrl.Font = "Arial"
ctrl.SelFontSize = 8
End If
End If
Nex
 
S

Stephen Lebans

You are not using the RTF2's Font property correctly. It requires a
StdFont object not a font Name. A googleGroups search will yield sample
code.

If you simply want a Default font then use the RTF2 control's Property
Sheet to set the desired font and its characteristics.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top