Lebans RichText Control Error 2771

J

Jesse

I just went through Google groups to try to find some help for the
aforementioned eror code. Sometime ago I read that if I installed the
FMS rich text control tryout after installing Lebans RichText control
it will mess the Lebans installation. I didn't remember at the time,
so I have trouble now. I unistalled the FMA tryout but that didn't
seem to solve the problem. The problem only occurs with the reports
(using Access 2k2). The code I got from the Lebans Site.

Dim Height As Integer
' Max height to allow for multiple RTF2 controls
Dim MaxHeight As Integer

' Init MaxHeight
MaxHeight = 0

Height = Me.RTF_Description.Object.RTFheight
If Height > 0 Then
If Height < 32000 Then
Me.RTF_Description.Height = Height
'Me.Section(acDetail).Height =
Me.RTF_Description.Height + Me.RTF_Description.Top
If MaxHeight > Me.RTF_Description.Height +
Me.RTF_Description.Top Then
MaxHeight = Me.RTF_Description.Height +
Me.RTF_Description.Top
End If
End If
End If

How can I fix the RTF2 mess up? Do I just install it over again?
Thanks
 
J

Jesse

I unistalled the FMS tryout and Lebans Control. Installed the Lebans
control again but still had the same problem. Now you'll tell me that
I have to go through the Registry.
 
S

Stephen Lebans

That error code generally means you are trying to modify a property or call
a method of the RTF2 cotnrol in the Open event of a Report. There are some
things that you simply cannot do in the Open event as Access has not fully
instantiated(created) the control at thsi point.

--

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

Top