By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,574 Members | 2,966 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,574 IT Pros & Developers. It's quick & easy.

RunTime Error 2455 in Access 2000

P: n/a
Any idea, what could be reason for the following effect.
Code developed in acc97 generates RunTime Error 2455 in Access 2000:
claiming the Name reference is wrong:

In the SUB:
Sub SymSizes(frm As Form, strSymbol As String, _
Optional intFontSize As Integer, Optional intFontName As String, _
Optional intFontweight As Integer)

Dim ctlLabel As Control
Set ctlLabel = CreateControl(frm.Name, acLabel, , "", _
String(10, strSymbol), _
100, 100)
If (intFontSize > 0) Then
ctlLabel.FontSize = intFontSize
ctlLabel.FontName = intFontName
ctlLabel.FontWeight = intFontweight
End If

intSymWi = ctlLabel.Width / 10
intSymHe = ctlLabel.Height

DeleteControl frm.Name, ctlLabel.Name
End Sub

Nov 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.